Permalink
Browse files

Fixed headers

  • Loading branch information...
1 parent 809c675 commit 29769ed41f57eb4afbc5d09edbc2fbd785bebef6 martin committed Dec 6, 2001
Showing with 10 additions and 3 deletions.
  1. +10 −3 course/mod.php
View
13 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",
- "<A HREF=\"$CFG->wwwroot/course/view.php?id=$course->id\">$course->shortname</A> ->
- Editing a $module->fullname", "form.name");
+ if ($course->category) {
+ print_header("$course->shortname: Editing a $module->fullname",
+ "$course->shortname: Editing a $module->fullname",
+ "<A HREF=\"$CFG->wwwroot/course/view.php?id=$course->id\">$course->shortname</A> ->
+ 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";

0 comments on commit 29769ed

Please sign in to comment.