From: martin Date: Thu, 6 Dec 2001 04:32:26 +0000 (+0000) Subject: Fixed headers X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=29769ed41f57eb4afbc5d09edbc2fbd785bebef6;p=moodle.git Fixed headers --- diff --git a/course/mod.php b/course/mod.php index 5558853ad5..832f6e7a20 100644 --- a/course/mod.php +++ b/course/mod.php @@ -181,9 +181,16 @@ error("You can't modify this course!"); } - print_header("$course->shortname: Editing a $module->fullname", "$course->shortname: Editing a $module->fullname", - "wwwroot/course/view.php?id=$course->id\">$course->shortname -> - Editing a $module->fullname", "form.name"); + if ($course->category) { + print_header("$course->shortname: Editing a $module->fullname", + "$course->shortname: Editing a $module->fullname", + "wwwroot/course/view.php?id=$course->id\">$course->shortname -> + Editing a $module->fullname", "form.name"); + } else { + print_header("$course->shortname: Editing a $module->fullname", + "$course->shortname: Editing a $module->fullname", + "Editing a $module->fullname", "form.name"); + } $modform = "../mod/$module->name/mod.html";