mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-06 03:14:27 +02:00
- bugfix typo in smarty_internal_templatecompilerbase and smarty_internal_template
This commit is contained in:
@@ -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
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user