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
@@ -109,7 +109,7 @@ class HTMLPurifier_DefinitionCache_Serializer extends
*/
private function _prepareDir($config) {
$directory = $this->generateDirectoryPath($config);
return check_dir_exists($directory, true, true); //Moodle hack
return check_dir_exists($directory); //Moodle hack
if (!is_dir($directory)) {
$base = $this->generateBaseDirectoryPath($config);
if (!is_dir($base)) {