mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
MDL-19194 fixed regression - recursive cretion of dirs on win32 works again
This commit is contained in:
parent
6508931bc3
commit
c92ac318a9
@ -8047,7 +8047,7 @@ function remove_dir($dir, $content_only=false) {
|
||||
function check_dir_exists($dir, $create=false, $recursive=false) {
|
||||
global $CFG;
|
||||
|
||||
if (strstr($dir, $CFG->dataroot.'/') === false) {
|
||||
if (strstr(cleardoubleslashes($dir), cleardoubleslashes($CFG->dataroot.'/')) === false) {
|
||||
debugging('Warning. Wrong call to check_dir_exists(). $dir must be an absolute path under $CFG->dataroot ("' . $dir . '" is incorrect)', DEBUG_DEVELOPER);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user