From: stronk7 Date: Sat, 29 Apr 2006 15:13:31 +0000 (+0000) Subject: Avoid [[namesite]] to appear when editing site activities. Bug 5370. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=85e20335a6ea07533b5e0c3bead1684852d63fb8;p=moodle.git Avoid [[namesite]] to appear when editing site activities. Bug 5370. (http://moodle.org/bugs/bug.php?op=show&bugid=5370) --- diff --git a/course/mod.php b/course/mod.php index 2fc900cb4f..99541b85a9 100644 --- a/course/mod.php +++ b/course/mod.php @@ -505,7 +505,7 @@ $sectionname = get_string("name$course->format"); $fullmodulename = strtolower(get_string("modulename", $module->name)); - if ($form->section) { + if ($form->section && $course->format != 'site') { $heading->what = $fullmodulename; $heading->in = "$sectionname $cw->section"; $pageheading = get_string("updatingain", "moodle", $heading); @@ -676,4 +676,4 @@ } print_footer($course); -?> \ No newline at end of file +?>