Mercurial > SimpleWebPresenter
comparison inputParser.inc @ 38:42533600214b
Rename cache_check.inc to CacheTimeCheck.inc.
Proper caching in flag.php.
| author | Tom Fredrik "BFG" Klaussen <bfg@blenning.no> |
|---|---|
| date | Thu, 04 Oct 2012 22:07:19 +0200 |
| parents | 511b6514823f |
| children | bd82b719a0de |
comparison
equal
deleted
inserted
replaced
| 37:da1726860524 | 38:42533600214b |
|---|---|
| 140 chdir("${cwd}"); | 140 chdir("${cwd}"); |
| 141 } | 141 } |
| 142 else { | 142 else { |
| 143 $src = $file->getAttribute("src"); | 143 $src = $file->getAttribute("src"); |
| 144 $fname = "${lang}/${src}"; | 144 $fname = "${lang}/${src}"; |
| 145 $options->getCache()->cache_time($fname); | 145 $file_content = $options->getCache()->loadFile($fname); |
| 146 $file_content = loadFile($fname); | |
| 147 } | 146 } |
| 148 if(floatval($file_content)<0) { | 147 if(floatval($file_content)<0) { |
| 149 errorPage("Resource not found '${lang}/${src}'"); | 148 errorPage("Resource not found '${lang}/${src}'"); |
| 150 } | 149 } |
| 151 | 150 |
