cvs: smarty / NEWS /libs Smarty.class.php
"Messju Mohr" <[email protected]>
| Newsgroups | gmane.comp.php.cvs.smarty |
|---|---|
| Message-ID | <cvsmessju1071565505@cvsserver> |
messju Tue Dec 16 04:05:05 2003 EDT
Modified files:
/smarty NEWS
/smarty/libs Smarty.class.php
Log:
fix headers sent erroneously with cache_modified_check and fetch()
Index: smarty/NEWS
diff -u smarty/NEWS:1.416 smarty/NEWS:1.417
--- smarty/NEWS:1.416 Fri Dec 12 09:38:41 2003
+++ smarty/NEWS Tue Dec 16 04:05:04 2003
@@ -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
Index: smarty/libs/Smarty.class.php
diff -u smarty/libs/Smarty.class.php:1.465 smarty/libs/Smarty.class.php:1.466
--- smarty/libs/Smarty.class.php:1.465 Thu Dec 4 06:37:26 2003
+++ smarty/libs/Smarty.class.php Tue Dec 16 04:05:04 2003
@@ -43,7 +43,7 @@
* @version 2.6.1-dev
*/
-/* $Id: Smarty.class.php,v 1.465 2003/12/04 11:37:26 messju Exp $ */
+/* $Id: Smarty.class.php,v 1.466 2003/12/16 09:05:04 messju Exp $ */
/**
* DIR_SEP isn't used anymore, but third party apps might
@@ -1234,7 +1234,7 @@
}
} 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');
}
}
--
Smarty CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php