From 0ec7502bad4fa3d8d0e0cb94fcc038646c0898f4 Mon Sep 17 00:00:00 2001 From: stronk7 Date: Mon, 15 May 2006 17:54:29 +0000 Subject: [PATCH] Avoid [[namesite]] to appear when ADDING site activities. Merged from MOODLE_16_STABLE I sent this on May 9th! :-( --- course/mod.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/course/mod.php b/course/mod.php index 99541b85a9..21cde8078e 100644 --- a/course/mod.php +++ b/course/mod.php @@ -609,7 +609,7 @@ $sectionname = get_string("name$course->format"); $fullmodulename = get_string("modulename", $module->name); - if ($form->section) { + if ($form->section && $course->format != 'site') { $heading->what = $fullmodulename; $heading->to = "$sectionname $form->section"; $pageheading = get_string("addinganewto", "moodle", $heading); -- 2.39.5