From 29769ed41f57eb4afbc5d09edbc2fbd785bebef6 Mon Sep 17 00:00:00 2001 From: martin Date: Thu, 6 Dec 2001 04:32:26 +0000 Subject: [PATCH] Fixed headers --- course/mod.php | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) 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"; -- 2.39.5