Merge branch 'wip-mdl-33102' of git://github.com/rajeshtaneja/moodle
authorDan Poltawski <dan@moodle.com>
Tue, 29 May 2012 08:10:59 +0000 (16:10 +0800)
committerDan Poltawski <dan@moodle.com>
Tue, 29 May 2012 08:10:59 +0000 (16:10 +0800)
admin/tool/bloglevelupgrade/index.php

index 9c87eec..bd2a531 100644 (file)
@@ -121,7 +121,7 @@ function bloglevelupgrade_entries($blogentries, $forum, $cm, $groupid=-1) {
         $discussion->groupid = $groupid;
         $message = '';
 
-        $discussionid = forum_add_discussion($discussion, null, $message);
+        $discussionid = forum_add_discussion($discussion, null, $message, $blogentry->userid);
 
         // Copy file attachment records
         $fs = get_file_storage();