MDL-40545 convert font cache to localcachedir

This commit is contained in:
Petr Škoda
2013-07-20 14:11:40 +02:00
parent cb8108dd22
commit 64a8058e18
+2 -2
View File
@@ -87,7 +87,7 @@ if (file_exists("$CFG->dirroot/theme/$themename/config.php")) {
font_not_found();
}
$candidatelocation = "$CFG->cachedir/theme/$rev/$themename/fonts/$component";
$candidatelocation = "$CFG->localcachedir/theme/$rev/$themename/fonts/$component";
$etag = sha1("$rev/$themename/$component/$font");
if ($rev > 0) {
@@ -133,7 +133,7 @@ if ($themerev <= 0 or $rev != $themerev) {
send_uncached_font($fontfile, $font, $mimetype);
}
make_cache_directory('theme', false);
make_localcache_directory('theme', false);
if (empty($fontfile) or !is_readable($fontfile)) {
if (!file_exists($candidatelocation)) {