mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-07 03:44:26 +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
|
// required plugins
|
||||||
public $required_plugins = array('compiled' => array(), 'nocache' => array());
|
public $required_plugins = array('compiled' => array(), 'nocache' => array());
|
||||||
public $security = false;
|
public $security = false;
|
||||||
public $saved_modifer = null;
|
public $saved_modifier = null;
|
||||||
public $smarty = null;
|
public $smarty = null;
|
||||||
/**
|
/**
|
||||||
* Create template data object
|
* Create template data object
|
||||||
|
@@ -334,7 +334,7 @@ class Smarty_Internal_TemplateCompilerBase {
|
|||||||
* }
|
* }
|
||||||
*/
|
*/
|
||||||
if ($type == 'modifier') {
|
if ($type == 'modifier') {
|
||||||
$this->template->saved_modifer[$plugin_name] = true;
|
$this->template->saved_modifier[$plugin_name] = true;
|
||||||
}
|
}
|
||||||
return $function;
|
return $function;
|
||||||
}
|
}
|
||||||
@@ -368,13 +368,13 @@ class Smarty_Internal_TemplateCompilerBase {
|
|||||||
$_output = str_replace("'", "\'", $content);
|
$_output = str_replace("'", "\'", $content);
|
||||||
$_output = "<?php echo '/*%%SmartyNocache:{$this->nocache_hash}%%*/" . $_output . "/*/%%SmartyNocache:{$this->nocache_hash}%%*/';?>";
|
$_output = "<?php echo '/*%%SmartyNocache:{$this->nocache_hash}%%*/" . $_output . "/*/%%SmartyNocache:{$this->nocache_hash}%%*/';?>";
|
||||||
// make sure we include modifer plugins for nocache code
|
// make sure we include modifer plugins for nocache code
|
||||||
if (isset($this->template->saved_modifer)) {
|
if (isset($this->template->saved_modifier)) {
|
||||||
foreach ($this->template->saved_modifer as $plugin_name => $dummy) {
|
foreach ($this->template->saved_modifier as $plugin_name => $dummy) {
|
||||||
if (isset($this->template->required_plugins['compiled'][$plugin_name]['modifier'])) {
|
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'];
|
$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 {
|
} else {
|
||||||
$_output = $content;
|
$_output = $content;
|
||||||
|
Reference in New Issue
Block a user