MDL-23984 improvements of check_dir_exists() - replacing by make_upload_directory() in cases where we want to be sure that the dir is writable; removning now default create and recursive params to make code easier to read

This commit is contained in:
Petr Skoda
2010-08-29 14:51:09 +00:00
parent 4031f6a27c
commit c426ef3aa5
14 changed files with 21 additions and 27 deletions
+1 -1
View File
@@ -73,7 +73,7 @@ require_once('Minify.php');
$theme = theme_config::load($themename);
if ($rev > -1) {
check_dir_exists(dirname($candidate), true, true);
check_dir_exists(dirname($candidate));
$fp = fopen($candidate, 'w');
fwrite($fp, minify($theme->javascript_files($type)));
fclose($fp);