mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 18:34:27 +02:00
Fix bug with $smarty.cookies.
This commit is contained in:
@@ -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':
|
||||||
|
@@ -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':
|
||||||
|
Reference in New Issue
Block a user