Removed notices by introducing new function print_header_simple() which works on site as well as in courses without extra logic.

This commit is contained in:
gustav_delius 2004-08-21 20:20:58 +00:00
parent 64c3e85374
commit 90fcc576ea
49 changed files with 1530 additions and 1709 deletions

View file

@ -12,16 +12,12 @@
require_login($course->id);
add_to_log($course->id, "journal", "view all", "index.php?id=$course->id", "");
if ($course->category) {
$navigation = "<a href=\"../../course/view.php?id=$course->id\">$course->shortname</a> ->";
}
$strjournal = get_string("modulename", "journal");
$strjournals = get_string("modulenameplural", "journal");
$strweek = get_string("week");
$strtopic = get_string("topic");
print_header("$course->shortname: $strjournals", "$course->fullname", "$navigation $strjournals",
print_header_simple("$strjournals", "", "$strjournals",
"", "", true, "", navmenu($course));

View file

@ -25,15 +25,11 @@
error("Course module is incorrect");
}
if ($course->category) {
$navigation = "<A HREF=\"../../course/view.php?id=$course->id\">$course->shortname</A> ->";
}
$strjournal = get_string("modulename", "journal");
$strjournals = get_string("modulenameplural", "journal");
print_header("$course->shortname: $journal->name", "$course->fullname",
"$navigation <A HREF=index.php?id=$course->id>$strjournals</A> -> $journal->name", "", "", true,
print_header_simple("$journal->name", "",
"<A HREF=index.php?id=$course->id>$strjournals</A> -> $journal->name", "", "", true,
update_module_button($cm->id, $course->id, $strjournal), navmenu($course, $cm));
if (isteacher($course->id)) {