mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
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:
parent
459c1ff12a
commit
ea35ab87d9
1 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue