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;