From 85e20335a6ea07533b5e0c3bead1684852d63fb8 Mon Sep 17 00:00:00 2001 From: stronk7 Date: Sat, 29 Apr 2006 15:13:31 +0000 Subject: [PATCH] Avoid [[namesite]] to appear when editing site activities. Bug 5370. (http://moodle.org/bugs/bug.php?op=show&bugid=5370) --- course/mod.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 +?> -- 2.39.5