- bugfix wrong tag type in smarty_internal_templatecompilerbase.php could cause wrong plugin search order (Forum Topic 24028)

This commit is contained in:
uwe.tews@googlemail.com
2013-01-24 19:16:41 +00:00
parent 6148053a15
commit 2140439352
2 changed files with 4 additions and 1 deletions

View File

@@ -1,4 +1,7 @@
===== trunk ===== ===== trunk =====
24.01.2013
- bugfix wrong tag type in smarty_internal_templatecompilerbase.php could cause wrong plugin search order (Forum Topic 24028)
===== Smarty-3.1.13 ===== ===== Smarty-3.1.13 =====
13.01.2013 13.01.2013
- enhancement allow to disable exception message escaping by SmartyException::$escape = false; (Issue #130) - enhancement allow to disable exception message escaping by SmartyException::$escape = false; (Issue #130)

View File

@@ -331,7 +331,7 @@ abstract class Smarty_Internal_TemplateCompilerBase {
} }
// check plugins from plugins folder // check plugins from plugins folder
foreach ($this->smarty->plugin_search_order as $plugin_type) { foreach ($this->smarty->plugin_search_order as $plugin_type) {
if ($plugin_type == Smarty::PLUGIN_BLOCK && $this->smarty->loadPlugin('smarty_compiler_' . $tag) && (!isset($this->smarty->security_policy) || $this->smarty->security_policy->isTrustedTag($tag, $this))) { if ($plugin_type == Smarty::PLUGIN_COMPILER && $this->smarty->loadPlugin('smarty_compiler_' . $tag) && (!isset($this->smarty->security_policy) || $this->smarty->security_policy->isTrustedTag($tag, $this))) {
$plugin = 'smarty_compiler_' . $tag; $plugin = 'smarty_compiler_' . $tag;
if (is_callable($plugin)) { if (is_callable($plugin)) {
// convert arguments format for old compiler plugins // convert arguments format for old compiler plugins