cvs: smarty / NEWS Smarty.class.php
| From: | Monte Ohrt | Date: | Fri, 07 Jun 2002 13:57:32 +0000 |
| Subject: | cvs: smarty / NEWS Smarty.class.php | ||
| Groups: | php.smarty.cvs | ||
| Request: | Send a blank email to php-smarty-cvs+get-129@lists.php.net to get a copy of this message | ||
mohrt Fri Jun 7 09:57:32 2002 EDT
Modified files:
/smarty NEWS Smarty.class.php
Log:
updated $GLOBALS refererence for HTTP_IF_MODIFIED_SINCE
Index: smarty/NEWS
diff -u smarty/NEWS:1.204 smarty/NEWS:1.205
--- smarty/NEWS:1.204 Wed Jun 5 09:17:17 2002
+++ smarty/NEWS Fri Jun 7 09:57:31 2002
@@ -1,3 +1,4 @@
+ - remove overlib.js file from distribution (Monte)
- fixed bug with 304 Not Modified response sending
content (Monte)
- fixed cycle function to respect delimiter after
Index: smarty/Smarty.class.php
diff -u smarty/Smarty.class.php:1.279 smarty/Smarty.class.php:1.280
--- smarty/Smarty.class.php:1.279 Wed Jun 5 09:17:17 2002
+++ smarty/Smarty.class.php Fri Jun 7 09:57:31 2002
@@ -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_SERVER_VARS']['HTTP_IF_MODIFIED_SINCE'],
'GMT') + 3);
+ $last_modified_date =
substr($GLOBALS['HTTP_SERVER_VARS']['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) {