MDL-28701 Change all uses of $CFG->dataroot/temp to $CFG->tempdir
This commit is contained in:
+1
-1
@@ -64,7 +64,7 @@ class Profiler
|
||||
{
|
||||
global $CFG, $USER;
|
||||
// List all files under our temporary directory
|
||||
$tempdir = $CFG->dataroot . '/temp/profile/' . $USER->id;
|
||||
$tempdir = $CFG->tempdir . '/profile/' . $USER->id;
|
||||
if ($files = scandir($tempdir)) {
|
||||
// Concatenate the files
|
||||
print_r($files);
|
||||
|
||||
Reference in New Issue
Block a user