From 64a8058e18cf4c26b6119f9a75dec5ced3e98ffc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20S=CC=8Ckoda?= Date: Sat, 20 Jul 2013 14:11:40 +0200 Subject: [PATCH] MDL-40545 convert font cache to localcachedir --- theme/font.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/theme/font.php b/theme/font.php index 8b26d256828..f093421e993 100644 --- a/theme/font.php +++ b/theme/font.php @@ -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)) {