Header and footer should include $CFG->header and $CFG->footer, just in

case the chosen theme doesn't exist any more
This commit is contained in:
moodler 2006-09-29 05:43:48 +00:00
parent 459c1ff12a
commit ea35ab87d9

View file

@ -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();