diff --git a/change_log.txt b/change_log.txt index 142cf1464..bd9474b0b 100644 --- a/change_log.txt +++ b/change_log.txt @@ -1,4 +1,7 @@  ===== 3.1.29-dev ===== (xx.xx.2015) + 15.12.2015 + - bugfix {$smarty.cookies.foo} did return the $_COOKIE array not the 'foo' value https://github.com/smarty-php/smarty/issues/122 + 14.12.2015 - bugfix {$smarty.config.foo} broken in 3.1.28 https://github.com/smarty-php/smarty/issues/120 - bugfix multiple calls of {section} with same name droped E_NOTICE error https://github.com/smarty-php/smarty/issues/118 diff --git a/libs/Smarty.class.php b/libs/Smarty.class.php index 12f3bb64a..0e275c80c 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/3'; + const SMARTY_VERSION = '3.1.29-dev/4'; /** * 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 a8662e134..e3cd2877b 100644 --- a/libs/sysplugins/smarty_internal_compile_private_special_variable.php +++ b/libs/sysplugins/smarty_internal_compile_private_special_variable.php @@ -54,7 +54,8 @@ public function compile($args, Smarty_Internal_TemplateCompilerBase $compiler, $ $compiler->trigger_template_error("(secure mode) super globals not permitted"); break; } - return '$_COOKIE'; + $compiled_ref = '$_COOKIE'; + break; case 'get': case 'post': case 'env':