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
|
@ -60,11 +60,8 @@
|
|||
|
||||
if ($course->category) {
|
||||
require_login($course->id);
|
||||
$navigation = "<a href=\"../../course/view.php?id=$course->id\">$course->shortname</a> ->
|
||||
<a href=\"index.php?id=$course->id\">$strforums</a> ->";
|
||||
} else {
|
||||
$navigation = "<a href=\"index.php?id=$course->id\">$strforums</a> ->";
|
||||
}
|
||||
}
|
||||
$navigation = "<a href=\"index.php?id=$course->id\">$strforums</a> ->";
|
||||
|
||||
if ($forum->type == "teacher") {
|
||||
if (!isteacher($course->id)) {
|
||||
|
@ -78,7 +75,7 @@
|
|||
add_to_log($course->id, "forum", "view forum", "view.php?f=$forum->id", "$forum->id");
|
||||
}
|
||||
|
||||
print_header("$course->shortname: $forum->name", "$course->fullname",
|
||||
print_header_simple("$forum->name", "",
|
||||
"$navigation $forum->name", "", "", true, $buttontext, navmenu($course, $cm));
|
||||
|
||||
if (!$cm->visible and !isteacher($course->id)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue