From e405d814a0accb0548b007dd7b9669a2e85b5a6e Mon Sep 17 00:00:00 2001 From: andrey Date: Tue, 19 Mar 2002 14:56:35 +0000 Subject: [PATCH] Fix bug with $smarty.cookies. --- Smarty_Compiler.class.php | 2 +- libs/Smarty_Compiler.class.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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':