Permalink
Browse files

MDL-28701 Change uses of make_upload_directory(cache) to make_cache_d…

…irectory().
  • Loading branch information...
1 parent af9b144 commit 5a87c912a2ed9a03fc2a18313c2bb2973a8c042a @tomlanyon tomlanyon committed with skodak Aug 23, 2011
Showing with 4 additions and 4 deletions.
  1. +2 −2 blog/rsslib.php
  2. +2 −2 lib/moodlelib.php
View
4 blog/rsslib.php
@@ -236,8 +236,8 @@ function blog_rss_save_file($type, $id, $tagid=0, $contents='') {
$status = true;
//blog creates some additional dirs within the rss cache so make sure they all exist
- make_upload_directory('cache/rss/blog');
- make_upload_directory('cache/rss/blog/'.$type);
+ make_cache_directory('rss/blog');
+ make_cache_directory('rss/blog/'.$type);
$filename = blog_rss_file_name($type, $id, $tagid);
$expandfilename = false; //we're supplying a full file path
View
4 lib/moodlelib.php
@@ -1373,11 +1373,11 @@ function purge_all_caches() {
remove_dir($CFG->cachedir.'', true);
// make sure cache dir is writable, throws exception if not
- make_upload_directory('cache');
+ make_cache_directory('');
// hack: this script may get called after the purifier was initialised,
// but we do not want to verify repeatedly this exists in each call
- make_upload_directory('cache/htmlpurifier');
+ make_cache_directory('htmlpurifier');
clearstatcache();
}

0 comments on commit 5a87c91

Please sign in to comment.