mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
Site news forum defaults to the "Site news" string
This commit is contained in:
parent
9c2c5c5bd0
commit
24cd45467f
1 changed files with 5 additions and 0 deletions
|
@ -644,6 +644,11 @@ function forum_get_course_forum($courseid, $type) {
|
||||||
switch ($forum->type) {
|
switch ($forum->type) {
|
||||||
case "news":
|
case "news":
|
||||||
$forum->name = get_string("namenews", "forum");
|
$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->intro = get_string("intronews", "forum");
|
||||||
$forum->open = 1; // 0 - no, 1 - posts only, 2 - discuss and post
|
$forum->open = 1; // 0 - no, 1 - posts only, 2 - discuss and post
|
||||||
$forum->assessed = 0;
|
$forum->assessed = 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue