]> git.mjollnir.org Git - moodle.git/commitdiff
Oops, typo
authormoodler <moodler>
Wed, 29 Oct 2003 09:16:12 +0000 (09:16 +0000)
committermoodler <moodler>
Wed, 29 Oct 2003 09:16:12 +0000 (09:16 +0000)
mod/forum/lib.php

index 3482c49e78a6390e78eb80564ed122b518a0732d..fe6602f14bd75a74b2c913425ccc6202c1c3d333 100644 (file)
@@ -1559,7 +1559,7 @@ function forum_move_attachments($discussion, $forumid) {
             if (is_dir($oldpostdir)) {
                 $newpost = $oldpost;
                 $newpost->forum = $forumid;
-                $newpostdir = "$CFG->dataroot/".forum_file_area($newpost);
+                $newpostdir = forum_file_area($newpost);
                 if (! @rename($oldpostdir, $newpostdir)) {
                     $return = false;
                 }