From 1eb8a44b0fd4b7a9334c24588af94c229ea37cc6 Mon Sep 17 00:00:00 2001 From: "Uwe.Tews" Date: Wed, 7 Apr 2010 15:19:02 +0000 Subject: [PATCH] - bugfix typo in smarty_internal_templatecompilerbase and smarty_internal_template --- libs/sysplugins/smarty_internal_template.php | 2 +- libs/sysplugins/smarty_internal_templatecompilerbase.php | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/libs/sysplugins/smarty_internal_template.php b/libs/sysplugins/smarty_internal_template.php index d107730b..3dfd3f31 100644 --- a/libs/sysplugins/smarty_internal_template.php +++ b/libs/sysplugins/smarty_internal_template.php @@ -68,7 +68,7 @@ class Smarty_Internal_Template extends Smarty_Internal_Data { // required plugins public $required_plugins = array('compiled' => array(), 'nocache' => array()); public $security = false; - public $saved_modifer = null; + public $saved_modifier = null; public $smarty = null; /** * Create template data object diff --git a/libs/sysplugins/smarty_internal_templatecompilerbase.php b/libs/sysplugins/smarty_internal_templatecompilerbase.php index 148db165..6af51d34 100644 --- a/libs/sysplugins/smarty_internal_templatecompilerbase.php +++ b/libs/sysplugins/smarty_internal_templatecompilerbase.php @@ -334,7 +334,7 @@ class Smarty_Internal_TemplateCompilerBase { * } */ if ($type == 'modifier') { - $this->template->saved_modifer[$plugin_name] = true; + $this->template->saved_modifier[$plugin_name] = true; } return $function; } @@ -368,13 +368,13 @@ class Smarty_Internal_TemplateCompilerBase { $_output = str_replace("'", "\'", $content); $_output = "nocache_hash}%%*/" . $_output . "/*/%%SmartyNocache:{$this->nocache_hash}%%*/';?>"; // make sure we include modifer plugins for nocache code - if (isset($this->template->saved_modifer)) { - foreach ($this->template->saved_modifer as $plugin_name => $dummy) { + if (isset($this->template->saved_modifier)) { + foreach ($this->template->saved_modifier as $plugin_name => $dummy) { if (isset($this->template->required_plugins['compiled'][$plugin_name]['modifier'])) { $this->template->required_plugins['nocache'][$plugin_name]['modifier'] = $this->template->required_plugins['compiled'][$plugin_name]['modifier']; } } - unset($this->template->saved_modifer); + unset($this->template->saved_modifier); } } else { $_output = $content;