mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 18:34:27 +02:00
fix headers sent erroneously with cache_modified_check and fetch()
This commit is contained in:
2
NEWS
2
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
|
||||
|
@@ -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');
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user