MDL-28701 Change all uses of $CFG->dataroot/temp to $CFG->tempdir

This commit is contained in:
Tom Lanyon
2011-09-10 10:35:39 +02:00
committed by Petr Skoda
parent 3e93987142
commit 7aa06e6ded
50 changed files with 111 additions and 111 deletions
+2 -2
View File
@@ -97,9 +97,9 @@ if (!isset($CFG->admin)) { // Just in case it isn't defined in config.php
// Set up some paths.
$CFG->libdir = $CFG->dirroot .'/lib';
// Allow overriding of tempdir but be backwards compatible with dataroot/temp
// Allow overriding of tempdir but be backwards compatible with tempdir
if (!isset($CFG->tempdir)) {
$CFG->tempdir = "$CFG->dataroot/temp";
$CFG->tempdir = "$CFG->tempdir";
}
// The current directory in PHP version 4.3.0 and above isn't necessarily the