MDL-76305 core: Use dir separator when assigning $CFG->tempdir

This commit is contained in:
Jun Pataleta 2022-11-15 16:24:52 +08:00
parent fee1b8ce5f
commit 2c098a7ec7

View File

@ -201,7 +201,7 @@ $CFG->libdir = $CFG->dirroot .'/lib';
// Allow overriding of tempdir but be backwards compatible
if (!isset($CFG->tempdir)) {
$CFG->tempdir = "$CFG->dataroot/temp";
$CFG->tempdir = $CFG->dataroot . DIRECTORY_SEPARATOR . "temp";
}
// Allow overriding of backuptempdir but be backwards compatible