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:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user