Mercurial > SimpleWebPresenter
diff cache_check.inc @ 22:ccfddd7fba1b
Cleanup.
| author | Tom Fredrik "BFG" Klaussen <bfg@blenning.no> |
|---|---|
| date | Wed, 19 Sep 2012 16:15:38 +0200 |
| parents | 5dc5cc27471d |
| children | 1ec0738a1623 |
line wrap: on
line diff
--- a/cache_check.inc Wed Sep 19 16:12:42 2012 +0200 +++ b/cache_check.inc Wed Sep 19 16:15:38 2012 +0200 @@ -16,7 +16,8 @@ header("Last-Modified: $gmdate_mod"); } -function cache_time($path) { +function cache_time($path) +{ global $newest; $mtime = filemtime($path); if ($mtime > $newest) { @@ -24,7 +25,8 @@ } } -function include_with_mtime($path) { +function include_with_mtime($path) +{ cache_time($path); include($path); }
