fix headers sent erroneously with cache_modified_check and fetch()

This commit is contained in:
messju
2003-12-16 09:05:04 +00:00
parent 95e68032cd
commit 4fe0af5398
2 changed files with 3 additions and 1 deletions

2
NEWS
View File

@@ -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

View File

@@ -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');
}
}