From 7dfe85307641fdfe51c63e7aa8cdd90cfd1584a5 Mon Sep 17 00:00:00 2001 From: Uwe Tews Date: Sun, 2 Aug 2015 21:12:33 +0200 Subject: [PATCH] remove unneed dummy $smarty template variable --- libs/sysplugins/smarty_internal_template.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/libs/sysplugins/smarty_internal_template.php b/libs/sysplugins/smarty_internal_template.php index 928bef98..8048d1d0 100644 --- a/libs/sysplugins/smarty_internal_template.php +++ b/libs/sysplugins/smarty_internal_template.php @@ -228,10 +228,6 @@ class Smarty_Internal_Template extends Smarty_Internal_TemplateBase $this->tpl_vars = $tpl_vars; $this->config_vars = $config_vars; } - // dummy local smarty variable - if (!isset($this->tpl_vars['smarty'])) { - $this->tpl_vars['smarty'] = new Smarty_Variable; - } $_smarty_old_error_level = isset($this->smarty->error_reporting) ? error_reporting($this->smarty->error_reporting) : null; // check URL debugging control if (!$this->smarty->debugging && $this->smarty->debugging_ctrl == 'URL') { @@ -511,8 +507,7 @@ class Smarty_Internal_Template extends Smarty_Internal_TemplateBase // get variables from calling scope if ($parent_scope == Smarty::SCOPE_LOCAL) { $tpl->tpl_vars = $this->tpl_vars; - $tpl->tpl_vars['smarty'] = clone $this->tpl_vars['smarty']; - } elseif ($parent_scope == Smarty::SCOPE_PARENT) { + } elseif ($parent_scope == Smarty::SCOPE_PARENT) { $tpl->tpl_vars = &$this->tpl_vars; } elseif ($parent_scope == Smarty::SCOPE_GLOBAL) { $tpl->tpl_vars = &Smarty::$global_tpl_vars;