Permalink
Browse files

OpenLearn ForumNG guest access #6219

  • Loading branch information...
1 parent 0899c6b commit 26a0a124cbed7c534ca0ef2eed16f240bb00703d @anthonyforth anthonyforth committed with sammarshallou Mar 5, 2013
Showing with 10 additions and 2 deletions.
  1. +1 −2 mod_forumng.php
  2. +9 −0 renderer.php
View
@@ -3340,8 +3340,7 @@ public function display_post_button($groupid) {
return $out->render_post_button($this, $groupid);
} else {
if ($whynot) {
- return '<p class="forumng-cannotstartdiscussion">' .
- get_string($whynot, 'forumng') . '</p>';
+ return $out->cannot_start_discussion_error($whynot);
} else {
return '';
}
View
@@ -1541,6 +1541,15 @@ public function confirm_three_button($message, $buttonone, $buttontwo, $cancel)
}
/**
+ * Print a message explaining why a user cannot start a discussion.
+ *
+ * @param string $message the identifier for the message to display.
+ */
+ public function cannot_start_discussion_error($message) {
+ return '<p class="forumng-cannotstartdiscussion">' . get_string($message, 'forumng') . '</p>';
+ }
+
+ /**
* Compiles the html message content for the rejection email.
*
* @param object $group The details of one group

0 comments on commit 26a0a12

Please sign in to comment.