Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9c2c5c5
)
Site news forum defaults to the "Site news" string
author
moodler
<moodler>
Thu, 2 Jan 2003 10:54:00 +0000
(10:54 +0000)
committer
moodler
<moodler>
Thu, 2 Jan 2003 10:54:00 +0000
(10:54 +0000)
mod/forum/lib.php
patch
|
blob
|
blame
|
history
diff --git
a/mod/forum/lib.php
b/mod/forum/lib.php
index
93244cf
..
85bce17
100644
(file)
--- a/
mod/forum/lib.php
+++ b/
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;