cvs: smarty /libs/plugins function.assign.php

"Messju Mohr" <[email protected]>
Newsgroups gmane.comp.php.cvs.smarty
Message-ID <cvsmessju1069493885@cvsserver>
messju		Sat Nov 22 04:38:05 2003 EDT

  Modified files:              
    /smarty/libs/plugins	function.assign.php 
  Log:
  remove use of extract() in smarty_function_assign()
  
  
Index: smarty/libs/plugins/function.assign.php
diff -u smarty/libs/plugins/function.assign.php:1.4 smarty/libs/plugins/function.assign.php:1.5
--- smarty/libs/plugins/function.assign.php:1.4	Fri Aug 29 04:51:25 2003
+++ smarty/libs/plugins/function.assign.php	Sat Nov 22 04:38:05 2003
@@ -3,7 +3,7 @@
  * Smarty plugin
  * @package Smarty
  * @subpackage plugins
- */
+
 
 /**
  * Smarty {assign} function plugin
@@ -18,9 +18,7 @@
  */
 function smarty_function_assign($params, &$smarty)
 {
-    extract($params);
-
-    if (empty($var)) {
+    if (empty($params['var'])) {
         $smarty->trigger_error("assign: missing 'var' parameter");
         return;
     }
@@ -30,7 +28,7 @@
         return;
     }
 
-    $smarty->assign($var, $value);
+    $smarty->assign($params['var'], $params['value']);
 }
 
 /* vim: set expandtab: */


-- 
Smarty CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.