RE: [SMARTY] Suggestion - track_globals off compatibility
| From: | LIMBOURG Arnaud | Date: | Thu, 30 May 2002 14:46:51 +0000 |
| Subject: | RE: [SMARTY] Suggestion - track_globals off compatibility | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-4461@lists.php.net to get a copy of this message | ||
I know track_vars and register globals but certainly not track_globals ...
> In smarty.class.php - replace:
>
> $GLOBALS['QUERY_STRING']
>
> ...with...
>
> $GLOBALS['HTTP_SERVER_VARS']['QUERY_STRING']
>
>
>
> This should make this class track_globals off compatibile
> (and thus, PHP 4.2.0+ compatibile too).
>
> PS. Maybe this kind of fix should be also implemented for other
> $GLOBALS calls - e.g. $GLOBALS['HTTP_IF_MODIFIED_SINCE'] ???
>
>
>
> Greetings,
> --- Michal
>
> --
> Smarty General Mailing List (http://smarty.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>