diff --git a/Smarty_Compiler.class.php b/Smarty_Compiler.class.php index 0ed0895d..46d6ab0b 100644 --- a/Smarty_Compiler.class.php +++ b/Smarty_Compiler.class.php @@ -1230,7 +1230,7 @@ class Smarty_Compiler extends Smarty { case 'cookies': array_shift($indexes); $name = substr($indexes[0], 1); - $compiled_ref = "\$GLOBALS['HTTP_SERVER_VARS']['$name']"; + $compiled_ref = "\$GLOBALS['HTTP_COOKIE_VARS']['$name']"; break; case 'env': diff --git a/libs/Smarty_Compiler.class.php b/libs/Smarty_Compiler.class.php index 0ed0895d..46d6ab0b 100644 --- a/libs/Smarty_Compiler.class.php +++ b/libs/Smarty_Compiler.class.php @@ -1230,7 +1230,7 @@ class Smarty_Compiler extends Smarty { case 'cookies': array_shift($indexes); $name = substr($indexes[0], 1); - $compiled_ref = "\$GLOBALS['HTTP_SERVER_VARS']['$name']"; + $compiled_ref = "\$GLOBALS['HTTP_COOKIE_VARS']['$name']"; break; case 'env':