From 7e224207d0f81cbca6d709775f291b7b6da8c742 Mon Sep 17 00:00:00 2001 From: moodler Date: Wed, 29 Oct 2003 09:12:23 +0000 Subject: [PATCH] Fixed bug when moving discussions with attachments --- mod/forum/lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.39.5