Mercurial > SimpleWebPresenter
comparison CacheTimeCheck.inc @ 64:164268b4e0d9
Make class of logger.
| author | Tom Fredrik "BFG" Klaussen <bfg@blenning.no> |
|---|---|
| date | Thu, 11 Oct 2012 20:33:04 +0200 |
| parents | 3898353ed1d8 |
| children | 7b87ec8b0842 |
comparison
equal
deleted
inserted
replaced
| 63:92c3e52c12d4 | 64:164268b4e0d9 |
|---|---|
| 93 * @param $path the path of the file | 93 * @param $path the path of the file |
| 94 */ | 94 */ |
| 95 function cache_time($path) | 95 function cache_time($path) |
| 96 { | 96 { |
| 97 if (!file_exists($path)) { | 97 if (!file_exists($path)) { |
| 98 warn("${path} does not exist"); | 98 Logger::warn("${path} does not exist"); |
| 99 errorPage("Resource is not available"); | 99 errorPage("Resource is not available"); |
| 100 } | 100 } |
| 101 | 101 |
| 102 array_push($this->files, $path); | 102 array_push($this->files, $path); |
| 103 $mtime = filemtime($path); | 103 $mtime = filemtime($path); |
