mirror of
https://github.com/moodle/moodle.git
synced 2025-04-22 08:55:15 +02:00
The home page is the only exception to the rule of navigation
This commit is contained in:
parent
833dcdea9f
commit
432038e084
@ -2267,7 +2267,7 @@ function print_header ($title='', $heading='', $navigation='', $focus='',
|
||||
|
||||
global $USER, $CFG, $THEME, $SESSION, $ME, $SITE, $COURSE;
|
||||
|
||||
if (gettype($navigation) == 'string' && strlen($navigation) != 0) {
|
||||
if (gettype($navigation) == 'string' && strlen($navigation) != 0 && $navigation != 'home') {
|
||||
debugging("print_header() was sent a string as 3rd ($navigation) parameter. "
|
||||
. "This is deprecated in favour of an array built by build_navigation(). Please upgrade your code.");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user