From: stronk7 <stronk7>
Date: Fri, 2 Nov 2007 13:02:56 +0000 (+0000)
Subject: There was a mistake in the dir being created. It must be
X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=7244ac4ba7562369949348116cf407452d538be5;p=moodle.git

There was a mistake in the dir being created. It must be
the backup temp area one. MDL-11912

Merged from MOODLE_19_STABLE
---

diff --git a/backup/backuplib.php b/backup/backuplib.php
index e49dac9ab3..2b9aadc20e 100644
--- a/backup/backuplib.php
+++ b/backup/backuplib.php
@@ -2227,7 +2227,7 @@
                     $userid = $parts[1];
 
                     // Create group dir first
-                    $status = check_dir_exists($userinfo['basedir'] . '/' . $group, true);
+                    $status = check_dir_exists("$CFG->dataroot/temp/backup/$preferences->backup_unique_code/user_files/". $group, true);
                 }
                 
                 $status = $status && backup_copy_file($userinfo['basedir'] . '/' . $userinfo['userfolder'],