From: moodler Date: Fri, 29 Sep 2006 05:43:48 +0000 (+0000) Subject: Header and footer should include $CFG->header and $CFG->footer, just in X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=ea35ab87d9666b634389016fafa3330e62befb5d;p=moodle.git Header and footer should include $CFG->header and $CFG->footer, just in case the chosen theme doesn't exist any more --- diff --git a/lib/weblib.php b/lib/weblib.php index 6185a63bd5..284676903a 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -2214,7 +2214,7 @@ function print_header ($title='', $heading='', $navigation='', $focus='', $bodytags .= ' class="'.$pageclass.'" id="'.$pageid.'"'; ob_start(); - include ($CFG->themedir.current_theme().'/header.html'); + include($CFG->header); $output = ob_get_contents(); ob_end_clean(); @@ -2341,7 +2341,7 @@ function print_footer($course=NULL, $usercourse=NULL, $return=false) { /// Include the actual footer file ob_start(); - include ($CFG->themedir.current_theme().'/footer.html'); + include($CFG->footer); $output = ob_get_contents(); ob_end_clean();