From 85b1375221562b03f0c5d6d706d9461decc7aef6 Mon Sep 17 00:00:00 2001 From: mohrt Date: Fri, 7 Jun 2002 13:57:31 +0000 Subject: [PATCH] updated $GLOBALS refererence for HTTP_IF_MODIFIED_SINCE --- NEWS | 1 + Smarty.class.php | 2 +- libs/Smarty.class.php | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/NEWS b/NEWS index 325059da..2e28ac85 100644 --- a/NEWS +++ b/NEWS @@ -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 diff --git a/Smarty.class.php b/Smarty.class.php index 43e065c9..68591ce9 100644 --- a/Smarty.class.php +++ b/Smarty.class.php @@ -600,7 +600,7 @@ class Smarty $_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) { diff --git a/libs/Smarty.class.php b/libs/Smarty.class.php index 43e065c9..68591ce9 100644 --- a/libs/Smarty.class.php +++ b/libs/Smarty.class.php @@ -600,7 +600,7 @@ class Smarty $_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) {