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

"Messju Mohr" <[email protected]>
Newsgroups gmane.comp.php.cvs.smarty
Message-ID <cvsmessju1058451798@cvsserver>
messju		Thu Jul 17 10:23:18 2003 EDT

  Modified files:              
    /smarty/libs/plugins	function.eval.php 
  Log:
  fixed assign parameter for eval (must have gotton lost on its way to 2.5.0)
  cleaned up indentiation
  
  
  
Index: smarty/libs/plugins/function.eval.php
diff -u smarty/libs/plugins/function.eval.php:1.10 smarty/libs/plugins/function.eval.php:1.11
--- smarty/libs/plugins/function.eval.php:1.10	Sun Jun 29 18:57:33 2003
+++ smarty/libs/plugins/function.eval.php	Thu Jul 17 10:23:18 2003
@@ -25,21 +25,21 @@
         return;
     }
 
-	if($params['var'] == '') {
-		return;
-	}
+    if($params['var'] == '') {
+        return;
+    }
 
-	$smarty->_compile_source('evaluated template', $params['var'], $_var_compiled);
+    $smarty->_compile_source('evaluated template', $params['var'], $_var_compiled);
 
     ob_start();
-	$smarty->smarty_eval('?>' . $_var_compiled);
-	$_contents = ob_get_contents();
+    $smarty->smarty_eval('?>' . $_var_compiled);
+    $_contents = ob_get_contents();
     ob_end_clean();
 
-    if (!empty($assign)) {
-    	$smarty->assign($assign, $_contents);
+    if (!empty($params['assign'])) {
+        $smarty->assign($params['assign'], $_contents);
     } else {
-		return $_contents;
+        return $_contents;
     }
 }
 



-- 
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.