From 209cd6efeb4e0ea0ab758772db19ba3f7277bbf7 Mon Sep 17 00:00:00 2001 From: messju Date: Tue, 18 Nov 2003 23:18:35 +0000 Subject: [PATCH] removed extract-calls from _include()- and _eval()-wrappers variables passed with {include_php} have to accessed as members of $params now --- libs/Smarty.class.php | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/libs/Smarty.class.php b/libs/Smarty.class.php index 84e2cfb1..eeca6497 100644 --- a/libs/Smarty.class.php +++ b/libs/Smarty.class.php @@ -1994,11 +1994,8 @@ class Smarty * 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 @@ class Smarty * 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); } /**#@-*/