MDL-28981 fix forum_user_can_post() call params
authorPetr Skoda <commits@skodak.org>
Sun, 21 Aug 2011 13:50:23 +0000 (15:50 +0200)
committerPetr Skoda <commits@skodak.org>
Sun, 21 Aug 2011 13:50:23 +0000 (15:50 +0200)
mod/forum/lib.php

index 7c25e0c..8d0e7ec 100644 (file)
@@ -1060,7 +1060,7 @@ function forum_make_mail_html($course, $cm, $forum, $discussion, $post, $userfro
     }
 
     if (!isset($userto->canpost[$discussion->id])) {
-        $canreply = forum_user_can_post($forum, $discussion, $userto);
+        $canreply = forum_user_can_post($forum, $discussion, $userto, $cm, $course);
     } else {
         $canreply = $userto->canpost[$discussion->id];
     }