From f8ec3ecaef2cdeff6512b3f9826dd91d9e306ee6 Mon Sep 17 00:00:00 2001 From: uwetews Date: Mon, 14 Dec 2015 00:04:31 +0100 Subject: [PATCH] - bugfix {$smarty.config.foo} broken in 3.1.28 https://github.com/smarty-php/smarty/issues/120 --- change_log.txt | 4 +++- libs/Smarty.class.php | 2 +- .../smarty_internal_compile_private_special_variable.php | 4 ++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/change_log.txt b/change_log.txt index 892e5d26..c223cc0c 100644 --- a/change_log.txt +++ b/change_log.txt @@ -1,5 +1,7 @@  ===== 3.1.29-dev ===== (xx.xx.2015) - + 14.12.2015 + - bugfix {$smarty.config.foo} broken in 3.1.28 https://github.com/smarty-php/smarty/issues/120 + ===== 3.1.28 ===== (13.12.2015) 13.12.2015 - bugfix {foreach} and {section} with uppercase characters in name attribute did not work (forum topic 25819) diff --git a/libs/Smarty.class.php b/libs/Smarty.class.php index 1b76315a..85efef1c 100644 --- a/libs/Smarty.class.php +++ b/libs/Smarty.class.php @@ -118,7 +118,7 @@ class Smarty extends Smarty_Internal_TemplateBase /** * smarty version */ - const SMARTY_VERSION = '3.1.29-dev/1'; + const SMARTY_VERSION = '3.1.29-dev/2'; /** * define variable scopes diff --git a/libs/sysplugins/smarty_internal_compile_private_special_variable.php b/libs/sysplugins/smarty_internal_compile_private_special_variable.php index 5a8c54fa..a8662e13 100644 --- a/libs/sysplugins/smarty_internal_compile_private_special_variable.php +++ b/libs/sysplugins/smarty_internal_compile_private_special_variable.php @@ -99,9 +99,9 @@ class Smarty_Internal_Compile_Private_Special_Variable extends Smarty_Internal_C case 'config': if (isset($_index[2])) { - return "(is_array(\$tmp = \$_smarty_tpl->smarty->ext->_config->_getConfigVariable(\$_smarty_tpl, $_index[1])) ? \$tmp[$_index[2]] : null)"; + return "(is_array(\$tmp = \$_smarty_tpl->smarty->ext->configload->_getConfigVariable(\$_smarty_tpl, $_index[1])) ? \$tmp[$_index[2]] : null)"; } else { - return "\$_smarty_tpl->smarty->ext->_config->_getConfigVariable(\$_smarty_tpl, $_index[1])"; + return "\$_smarty_tpl->smarty->ext->configload->_getConfigVariable(\$_smarty_tpl, $_index[1])"; } case 'ldelim': $_ldelim = $compiler->smarty->left_delimiter;