From: moodler Date: Wed, 29 Oct 2003 09:12:23 +0000 (+0000) Subject: Fixed bug when moving discussions with attachments X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=7e224207d0f81cbca6d709775f291b7b6da8c742;p=moodle.git Fixed bug when moving discussions with attachments --- diff --git a/mod/forum/lib.php b/mod/forum/lib.php index cb55122d1a..3482c49e78 100644 --- a/mod/forum/lib.php +++ b/mod/forum/lib.php @@ -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_name($newpost); + $newpostdir = "$CFG->dataroot/".forum_file_area($newpost); if (! @rename($oldpostdir, $newpostdir)) { $return = false; }