updated $GLOBALS refererence for HTTP_IF_MODIFIED_SINCE

This commit is contained in:
mohrt
2002-06-07 13:57:31 +00:00
parent 450b8c9d3e
commit 85b1375221
3 changed files with 3 additions and 2 deletions

1
NEWS
View File

@@ -1,3 +1,4 @@
- remove overlib.js file from distribution (Monte)
- fixed bug with 304 Not Modified response sending - fixed bug with 304 Not Modified response sending
content (Monte) content (Monte)
- fixed cycle function to respect delimiter after - fixed cycle function to respect delimiter after

View File

@@ -600,7 +600,7 @@ class Smarty
$_smarty_results .= $this->_generate_debug_output(); $_smarty_results .= $this->_generate_debug_output();
} }
if ($this->cache_modified_check) { 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'; $gmt_mtime = gmdate('D, d M Y H:i:s', $this->_cache_info['timestamp']).' GMT';
if (@count($this->_cache_info['insert_tags']) == 0 if (@count($this->_cache_info['insert_tags']) == 0
&& $gmt_mtime == $last_modified_date) { && $gmt_mtime == $last_modified_date) {

View File

@@ -600,7 +600,7 @@ class Smarty
$_smarty_results .= $this->_generate_debug_output(); $_smarty_results .= $this->_generate_debug_output();
} }
if ($this->cache_modified_check) { 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'; $gmt_mtime = gmdate('D, d M Y H:i:s', $this->_cache_info['timestamp']).' GMT';
if (@count($this->_cache_info['insert_tags']) == 0 if (@count($this->_cache_info['insert_tags']) == 0
&& $gmt_mtime == $last_modified_date) { && $gmt_mtime == $last_modified_date) {