MDL-41660 backup ims-cc: Use correct temp directory
authorMatt Petro <petro@engr.wisc.edu>
Sun, 8 Sep 2013 21:22:33 +0000 (17:22 -0400)
committerMatt Petro <petro@engr.wisc.edu>
Sun, 8 Sep 2013 21:28:33 +0000 (17:28 -0400)
backup/converter/imscc11/backuplib.php

index b6d7154..2d749bd 100644 (file)
@@ -139,7 +139,7 @@ class imscc11_backup_convert extends backup_execution_step {
 
         require_once($CFG->dirroot . '/backup/cc/cc_includes.php');
 
-        $tempdir = $CFG->dataroot . '/temp/backup/' . uniqid('', true);
+        $tempdir = $CFG->tempdir . '/backup/' . uniqid('', true);
 
         if (mkdir($tempdir, $CFG->directorypermissions, true)) {