Skip to content

Commit

Permalink
Error message to use lang string nopostdiscussion
Browse files Browse the repository at this point in the history
  • Loading branch information
vyshane committed Nov 13, 2006
1 parent eb10848 commit 3d436d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mod/forum/post.php
Expand Up @@ -148,7 +148,7 @@
if (groupmode($course, $cm)) { // Make sure user can post here
$mygroupid = mygroupid($course->id);
if (!((empty($mygroupid) and $discussion->groupid == -1) || (ismember($discussion->groupid)/*$mygroupid == $discussion->groupid*/))) {
error("Sorry, but you can not post in this discussion.");
print_error('nopostdiscussion', 'forum');
}
}
if (!$cm->visible and !has_capability('moodle/course:manageactivities', $coursecontext)) {
Expand Down

0 comments on commit 3d436d5

Please sign in to comment.