From: moodler Date: Mon, 27 Aug 2007 09:40:14 +0000 (+0000) Subject: The home page is the only exception to the rule of navigation X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=432038e0844ca1060947da71253a65f6d5372e5d;p=moodle.git The home page is the only exception to the rule of navigation --- diff --git a/lib/weblib.php b/lib/weblib.php index b51738a48a..84e327cbd5 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -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."); }