cvs: smarty / NEWS Smarty.class.php
| From: | Monte Ohrt | Date: | Mon, 03 Jun 2002 16:42:00 +0000 |
| Subject: | cvs: smarty / NEWS Smarty.class.php | ||
| Groups: | php.smarty.cvs | ||
| Request: | Send a blank email to php-smarty-cvs+get-121@lists.php.net to get a copy of this message | ||
mohrt Mon Jun 3 12:42:00 2002 EDT
Modified files:
/smarty NEWS Smarty.class.php
Log:
update $GLOBALS references to work properly with track_globals settings
Index: smarty/NEWS
diff -u smarty/NEWS:1.201 smarty/NEWS:1.202
--- smarty/NEWS:1.201 Mon Jun 3 12:05:32 2002
+++ smarty/NEWS Mon Jun 3 12:41:59 2002
@@ -1,4 +1,8 @@
- - optimized for loops with count() function calls (monte)
+ - update $GLOBALS references to work properly with
+ track_globals settings (Michal Prinke, Monte)
+ - fixed bug in math function with call to assign
+ (Grigory V. Kareev, Monte)
+ - optimized for loops with count() function calls (Monte)
- add month_value_format attribute to html_select_date
plugin (Gary Loescher, Monte)
- made it possible to use simple variables inside [] for
Index: smarty/Smarty.class.php
diff -u smarty/Smarty.class.php:1.277 smarty/Smarty.class.php:1.278
--- smarty/Smarty.class.php:1.277 Mon Jun 3 12:05:32 2002
+++ smarty/Smarty.class.php Mon Jun 3 12:42:00 2002
@@ -565,7 +565,7 @@
$_smarty_old_error_level = $this->debugging ? error_reporting() :
error_reporting(error_reporting() & ~E_NOTICE);
if (!$this->debugging && $this->debugging_ctrl == 'URL'
- && strstr($GLOBALS['QUERY_STRING'], $this->_smarty_debug_id)) {
+ && strstr($GLOBALS['HTTP_SERVER_VARS']['QUERY_STRING'],
$this->_smarty_debug_id)) {
$this->debugging = true;
}
@@ -600,7 +600,7 @@
$_smarty_results .= $this->_generate_debug_output();
}
if ($this->cache_modified_check) {
- $last_modified_date = substr($GLOBALS['HTTP_IF_MODIFIED_SINCE'],
0, strpos($GLOBALS['HTTP_IF_MODIFIED_SINCE'], 'GMT') + 3);
+ $last_modified_date = substr($GLOBALS['HTTP_IF_MODIFIED_SINCE'],
0, strpos($GLOBALS['HTTP_SERVER_VARS']['HTTP_IF_MODIFIED_SINCE'],
'GMT') + 3);
$gmt_mtime = gmdate('D, d M Y H:i:s',
$this->_cache_info['timestamp']).' GMT';
if (@count($this->_cache_info['insert_tags']) == 0
&& $gmt_mtime == $last_modified_date) {