]> git.mjollnir.org Git - moodle.git/commitdiff
Avoid [[namesite]] to appear when ADDING site activities.
authorstronk7 <stronk7>
Mon, 15 May 2006 17:54:29 +0000 (17:54 +0000)
committerstronk7 <stronk7>
Mon, 15 May 2006 17:54:29 +0000 (17:54 +0000)
Merged from MOODLE_16_STABLE

I sent this on May 9th! :-(

course/mod.php

index 99541b85a931cd64804b4ceb9d51f74cfee106ee..21cde8078efd797844922649e330ca5a01cfd8df 100644 (file)
         $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);