mirror of
https://github.com/moodle/moodle.git
synced 2025-04-07 09:23:31 +02:00
MDL-62251 task: Fix file_temp_cleanup_task::execute() bug in Windows
$CFG->tempdir might contain both / and \ in Windows. Therefore, we need to call realpatch() to be able to compare that with another patch.
This commit is contained in:
parent
f181a24a0b
commit
da3c76158e
@ -110,7 +110,7 @@ class file_temp_cleanup_task extends scheduled_task {
|
||||
$this->execute_on($CFG->tempdir);
|
||||
|
||||
// Run on $CFG->backuptempdir too, if different from the default one, '$CFG->tempdir/backup'.
|
||||
if (realpath(dirname($CFG->backuptempdir)) !== $CFG->tempdir) {
|
||||
if (realpath(dirname($CFG->backuptempdir)) !== realpath($CFG->tempdir)) {
|
||||
// The $CFG->backuptempdir setting is different from the default '$CFG->tempdir/backup'.
|
||||
$this->execute_on($CFG->backuptempdir);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user