]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-12718 show the print_header navigation warning only if in DEBUG_DEVELOPER mode...
authorskodak <skodak>
Sun, 23 Dec 2007 13:55:10 +0000 (13:55 +0000)
committerskodak <skodak>
Sun, 23 Dec 2007 13:55:10 +0000 (13:55 +0000)
lib/weblib.php

index 99b034a807e786fb848a770c7a82dbdc03318321..8a9b19cb6118b1fd48ea9ac7a8fe6492326af62e 100644 (file)
@@ -2321,7 +2321,7 @@ function print_header ($title='', $heading='', $navigation='', $focus='',
 
     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.");
+                . "This is deprecated in favour of an array built by build_navigation(). Please upgrade your code.", DEBUG_DEVELOPER);
     }
 
     $heading = format_string($heading); // Fix for MDL-8582
@@ -7056,6 +7056,5 @@ function is_in_popup() {
 }
 
 
-
 // vim:autoindent:expandtab:shiftwidth=4:tabstop=4:tw=140:
 ?>