From 4fe0af5398806c918f73e21f1bbae0d4966269cd Mon Sep 17 00:00:00 2001 From: messju Date: Tue, 16 Dec 2003 09:05:04 +0000 Subject: [PATCH] fix headers sent erroneously with cache_modified_check and fetch() --- NEWS | 2 ++ libs/Smarty.class.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index b6a90035..5325af33 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,5 @@ + - fix headers sent erroneously with cache_modified_check and fetch() + (wphilips, messju) - fix config_file path bug (Marc Cabadas, Monte) - fix 'is even by' and 'is odd by' logic (Monte) - add day_empty, month_empty, year_empty and all_empty attributes to diff --git a/libs/Smarty.class.php b/libs/Smarty.class.php index 5c105106..e5663261 100644 --- a/libs/Smarty.class.php +++ b/libs/Smarty.class.php @@ -1234,7 +1234,7 @@ class Smarty } } else { $this->_cache_info['template'][$resource_name] = true; - if ($this->cache_modified_check) { + if ($this->cache_modified_check && $display) { header("Last-Modified: ".gmdate('D, d M Y H:i:s', time()).' GMT'); } }