The home page is the only exception to the rule of navigation

This commit is contained in:
moodler 2007-08-27 09:40:14 +00:00
parent 833dcdea9f
commit 432038e084

View File

@ -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.");
}