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
|
@ -41,7 +41,7 @@
|
|||
error("Course Module ID was incorrect");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/// Build the ewsiki script constant
|
||||
$ewbase = 'view.php?id='.$id;
|
||||
if (isset($userid)) $ewbase .= '&userid='.$userid;
|
||||
|
@ -91,12 +91,6 @@
|
|||
# The mighty Wiki itself
|
||||
include_once($CFG->dirroot."/mod/wiki/ewiki/ewiki.php");
|
||||
|
||||
/// Print the page header
|
||||
|
||||
if ($course->category) {
|
||||
$navigation = "<A HREF=\"../../course/view.php?id=$course->id\">$course->shortname</A> ->";
|
||||
}
|
||||
|
||||
$strwikis = get_string("modulenameplural", "wiki");
|
||||
$strwiki = get_string("modulename", "wiki");
|
||||
|
||||
|
@ -121,8 +115,8 @@
|
|||
}
|
||||
}
|
||||
|
||||
print_header("$course->shortname: $wiki_entry->pagename", "$course->fullname",
|
||||
"$navigation <A HREF=\"index.php?id=$course->id\">$strwikis</A> -> <A HREF=\"view.php?id=$id\">$wiki->name</a> ->".
|
||||
print_header_simple("$wiki_entry->pagename", "",
|
||||
"<A HREF=\"index.php?id=$course->id\">$strwikis</A> -> <A HREF=\"view.php?id=$id\">$wiki->name</a> ->".
|
||||
get_string("administration","wiki"),
|
||||
$focus, "", true, update_module_button($cm->id, $course->id, $strwiki),
|
||||
navmenu($course, $cm));
|
||||
|
@ -348,4 +342,4 @@
|
|||
print_footer($course);
|
||||
exit;
|
||||
|
||||
?>
|
||||
?>
|
|
@ -25,11 +25,7 @@
|
|||
|
||||
/// Print the header
|
||||
|
||||
if ($course->category) {
|
||||
$navigation = "<A HREF=\"../../course/view.php?id=$course->id\">$course->shortname</A> ->";
|
||||
}
|
||||
|
||||
print_header("$course->shortname: $strwikis", "$course->fullname", "$navigation $strwikis", "", "", true, "", navmenu($course));
|
||||
print_header_simple("$strwikis", "", "$strwikis", "", "", true, "", navmenu($course));
|
||||
|
||||
/// Get all the appropriate data
|
||||
|
||||
|
|
|
@ -215,15 +215,12 @@
|
|||
|
||||
|
||||
/// Print the page header
|
||||
if ($course->category) {
|
||||
$navigation = "<A HREF=\"../../course/view.php?id=$course->id\">$course->shortname</A> ->";
|
||||
}
|
||||
|
||||
$strwikis = get_string("modulenameplural", "wiki");
|
||||
$strwiki = get_string("modulename", "wiki");
|
||||
|
||||
print_header("$course->shortname: ".($ewiki_title?$ewiki_title:$wiki->name), "$course->fullname",
|
||||
"$navigation <A HREF=\"index.php?id=$course->id\">$strwikis</A> -> <A HREF=\"view.php?id=$moodleID\">$wiki->name</a>".($ewiki_title?" -> $ewiki_title":""),
|
||||
print_header_simple(($ewiki_title?$ewiki_title:$wiki->name), "",
|
||||
"<A HREF=\"index.php?id=$course->id\">$strwikis</A> -> <A HREF=\"view.php?id=$moodleID\">$wiki->name</a>".($ewiki_title?" -> $ewiki_title":""),
|
||||
"", "", true, update_module_button($cm->id, $course->id, $strwiki),
|
||||
navmenu($course, $cm));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue