]> git.mjollnir.org Git - moodle.git/commitdiff
Avoid [[namesite]] to appear when editing site activities. Bug 5370.
authorstronk7 <stronk7>
Sat, 29 Apr 2006 15:13:31 +0000 (15:13 +0000)
committerstronk7 <stronk7>
Sat, 29 Apr 2006 15:13:31 +0000 (15:13 +0000)
(http://moodle.org/bugs/bug.php?op=show&bugid=5370)

course/mod.php

index 2fc900cb4f261fe4c0172916c77f5ef15c0118a5..99541b85a931cd64804b4ceb9d51f74cfee106ee 100644 (file)
         $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);
     }
 
     print_footer($course);
-?>
\ No newline at end of file
+?>