From: moodler Date: Wed, 13 Sep 2006 04:11:36 +0000 (+0000) Subject: Use $COURSE and not the $course hack X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=9103fd10f8adf820fe6821c6a7d947dee09d33b4;p=moodle.git Use $COURSE and not the $course hack --- diff --git a/lib/weblib.php b/lib/weblib.php index 27229b2ac7..77f00ca912 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -2241,14 +2241,14 @@ function print_header ($title='', $heading='', $navigation='', $focus='', function print_header_simple($title='', $heading='', $navigation='', $focus='', $meta='', $cache=true, $button=' ', $menu='', $usexml=false, $bodytags='', $return=false) { - global $course,$CFG; // The same hack is used in print_header + global $COURSE, $CFG; $shortname =''; - if ($course->category) { - $shortname = ''. $course->shortname .' ->'; + if ($COURSE->category) { + $shortname = ''. $COURSE->shortname .' ->'; } - $output = print_header($course->shortname .': '. $title, $course->fullname .' '. $heading, $shortname .' '. $navigation, $focus, $meta, + $output = print_header($COURSE->shortname .': '. $title, $course->fullname .' '. $heading, $shortname .' '. $navigation, $focus, $meta, $cache, $button, $menu, $usexml, $bodytags, true); if ($return) {