From 9103fd10f8adf820fe6821c6a7d947dee09d33b4 Mon Sep 17 00:00:00 2001 From: moodler Date: Wed, 13 Sep 2006 04:11:36 +0000 Subject: [PATCH] Use $COURSE and not the $course hack --- lib/weblib.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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) { -- 2.39.5