MDL-28701 Change all uses of $CFG->dataroot/temp to $CFG->tempdir
This commit is contained in:
+1
-1
@@ -2176,7 +2176,7 @@ function put_records_csv($file, $records, $table = NULL) {
|
||||
|
||||
echo "x";
|
||||
|
||||
if(!($fp = @fopen($CFG->dataroot.'/temp/'.$file, 'w'))) {
|
||||
if(!($fp = @fopen($CFG->tempdir.'/'.$file, 'w'))) {
|
||||
print_error('put_records_csv failed to open '.$file);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user