- bugfix typo in smarty_internal_templatecompilerbase and smarty_internal_template

This commit is contained in:
Uwe.Tews
2010-04-07 15:19:02 +00:00
parent b14725e21a
commit 1eb8a44b0f
2 changed files with 5 additions and 5 deletions

View File

@@ -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

View File

@@ -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 = "<?php echo '/*%%SmartyNocache:{$this->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;