Fix bug with $smarty.cookies.

This commit is contained in:
andrey
2002-03-19 14:56:35 +00:00
parent 708b330a7d
commit e405d814a0
2 changed files with 2 additions and 2 deletions

View File

@@ -1230,7 +1230,7 @@ class Smarty_Compiler extends Smarty {
case 'cookies': case 'cookies':
array_shift($indexes); array_shift($indexes);
$name = substr($indexes[0], 1); $name = substr($indexes[0], 1);
$compiled_ref = "\$GLOBALS['HTTP_SERVER_VARS']['$name']"; $compiled_ref = "\$GLOBALS['HTTP_COOKIE_VARS']['$name']";
break; break;
case 'env': case 'env':

View File

@@ -1230,7 +1230,7 @@ class Smarty_Compiler extends Smarty {
case 'cookies': case 'cookies':
array_shift($indexes); array_shift($indexes);
$name = substr($indexes[0], 1); $name = substr($indexes[0], 1);
$compiled_ref = "\$GLOBALS['HTTP_SERVER_VARS']['$name']"; $compiled_ref = "\$GLOBALS['HTTP_COOKIE_VARS']['$name']";
break; break;
case 'env': case 'env':