Suggestion - track_globals off compatibility
| From: | Michal Prinke | Date: | Thu, 30 May 2002 12:44:57 +0000 |
| Subject: | Suggestion - track_globals off compatibility | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-4450@lists.php.net to get a copy of this message | ||
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