MDL-28701 Change all uses of $CFG->dataroot/cache to $CFG->cachedir

This commit is contained in:
Tom Lanyon
2011-09-10 10:35:46 +02:00
committed by Petr Skoda
parent 383d388411
commit 365bec4c06
16 changed files with 25 additions and 25 deletions
+1 -1
View File
@@ -46,7 +46,7 @@ if (file_exists("$CFG->dirroot/theme/$themename/config.php")) {
die('Theme was not found, sorry.');
}
$candidate = "$CFG->dataroot/cache/theme/$themename/javascript_$type.js";
$candidate = "$CFG->cachedir/theme/$themename/javascript_$type.js";
if ($rev > -1 and file_exists($candidate)) {
if (!empty($_SERVER['HTTP_IF_NONE_MATCH']) || !empty($_SERVER['HTTP_IF_MODIFIED_SINCE'])) {