mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
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:
parent
64c3e85374
commit
90fcc576ea
49 changed files with 1530 additions and 1709 deletions
|
@ -24,11 +24,7 @@
|
|||
|
||||
/// Print the header
|
||||
|
||||
if ($course->category) {
|
||||
$navigation = "<A HREF=\"../../course/view.php?id=$course->id\">$course->shortname</A> ->";
|
||||
}
|
||||
|
||||
print_header("$course->shortname: $strlessons", "$course->fullname", "$navigation $strlessons", "", "", true, "", navmenu($course));
|
||||
print_header_simple("$strlessons", "", "$strlessons", "", "", true, "", navmenu($course));
|
||||
|
||||
/// Get all the appropriate data
|
||||
|
||||
|
|
|
@ -26,15 +26,11 @@
|
|||
|
||||
/// Print the page header
|
||||
|
||||
if ($course->category) {
|
||||
$navigation = "<a href=\"../../course/view.php?id=$course->id\">$course->shortname</a> ->";
|
||||
}
|
||||
|
||||
$strlessons = get_string("modulenameplural", "lesson");
|
||||
$strlesson = get_string("modulename", "lesson");
|
||||
|
||||
print_header("$course->shortname: $lesson->name", "$course->fullname",
|
||||
"$navigation <A HREF=index.php?id=$course->id>$strlessons</A> -> <a href=\"view.php?id=$cm->id\">$lesson->name</a>",
|
||||
print_header_simple("$lesson->name", "",
|
||||
"<A HREF=index.php?id=$course->id>$strlessons</A> -> <a href=\"view.php?id=$cm->id\">$lesson->name</a>",
|
||||
"", "", true, update_module_button($cm->id, $course->id, $strlesson),
|
||||
navmenu($course, $cm));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue