cvs: smarty /libs Smarty.class.php
"Messju Mohr" <[email protected]>
| Newsgroups | gmane.comp.php.cvs.smarty |
|---|---|
| Message-ID | <cvsmessju1069197515@cvsserver> |
messju Tue Nov 18 18:18:35 2003 EDT
Modified files:
/smarty/libs Smarty.class.php
Log:
removed extract-calls from _include()- and _eval()-wrappers
variables passed with {include_php} have to accessed as members of $params now
Index: smarty/libs/Smarty.class.php
diff -u smarty/libs/Smarty.class.php:1.456 smarty/libs/Smarty.class.php:1.457
--- smarty/libs/Smarty.class.php:1.456 Thu Nov 13 12:35:52 2003
+++ smarty/libs/Smarty.class.php Tue Nov 18 18:18:35 2003
@@ -43,7 +43,7 @@
* @version 2.6.0-RC3-cvs
*/
-/* $Id: Smarty.class.php,v 1.456 2003/11/13 17:35:52 mohrt Exp $ */
+/* $Id: Smarty.class.php,v 1.457 2003/11/18 23:18:35 messju Exp $ */
/**
* DIR_SEP isn't used anymore, but third party apps might
@@ -1994,11 +1994,8 @@
* wrapper for include() retaining $this
* @return mixed
*/
- function _include($filename, $once=false, $vars=null)
+ function _include($filename, $once=false, $params=null)
{
- if (is_array($vars))
- extract($vars, EXTR_PREFIX_SAME, 'include_php_');
-
if ($once) {
return include_once($filename);
} else {
@@ -2011,11 +2008,8 @@
* wrapper for eval() retaining $this
* @return mixed
*/
- function _eval($code, $vars=null)
+ function _eval($code, $params=null)
{
- if (is_array($vars))
- extract($vars, EXTR_PREFIX_SAME, 'include_php_');
-
return eval($code);
}
/**#@-*/
--
Smarty CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php