From ea35ab87d9666b634389016fafa3330e62befb5d Mon Sep 17 00:00:00 2001 From: moodler Date: Fri, 29 Sep 2006 05:43:48 +0000 Subject: [PATCH] Header and footer should include $CFG->header and $CFG->footer, just in case the chosen theme doesn't exist any more --- lib/weblib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(); -- 2.39.5