Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Site news forum defaults to the "Site news" string

  • Loading branch information...
commit 24cd45467f46fcdd268964163ca297bdeeb21eb3 1 parent 9c2c5c5
moodler authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 mod/forum/lib.php
View
5 mod/forum/lib.php
@@ -644,6 +644,11 @@ function forum_get_course_forum($courseid, $type) {
switch ($forum->type) {
case "news":
$forum->name = get_string("namenews", "forum");
+ if ($site = get_site()) {
+ if ($courseid == $site->id) {
+ $forum->name = get_string("sitenews");
+ }
+ }
$forum->intro = get_string("intronews", "forum");
$forum->open = 1; // 0 - no, 1 - posts only, 2 - discuss and post
$forum->assessed = 0;
Please sign in to comment.
Something went wrong with that request. Please try again.