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

"Messju Mohr" <[email protected]>
Newsgroups gmane.comp.php.cvs.smarty
Message-ID <cvsmessju1056323136@cvsserver>
messju		Sun Jun 22 19:05:36 2003 EDT

  Modified files:              
    /smarty/libs/plugins	function.eval.php 
  Log:
  fixed propagation of $this into evald code in smarty_function_eval()
  
Index: smarty/libs/plugins/function.eval.php
diff -u smarty/libs/plugins/function.eval.php:1.8 smarty/libs/plugins/function.eval.php:1.9
--- smarty/libs/plugins/function.eval.php:1.8	Thu Jun 19 10:04:49 2003
+++ smarty/libs/plugins/function.eval.php	Sun Jun 22 19:05:36 2003
@@ -30,8 +30,9 @@
 	}
 
 	$smarty->_compile_source('evaluated template', $params['var'], $_var_compiled);
-	
+
     ob_start();
+    $this =& $smarty; /* this should be done nicer, maybe */
 	eval('?>' . $_var_compiled);
 	$_contents = ob_get_contents();
     ob_end_clean();



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