]> git.mjollnir.org Git - moodle.git/commitdiff
Header and footer should include $CFG->header and $CFG->footer, just in
authormoodler <moodler>
Fri, 29 Sep 2006 05:43:48 +0000 (05:43 +0000)
committermoodler <moodler>
Fri, 29 Sep 2006 05:43:48 +0000 (05:43 +0000)
case the chosen theme doesn't exist any more

lib/weblib.php

index 6185a63bd5477b5e010d2526f97c6874016e1f7a..284676903aab496442351a755545bcd21e5eaaa0 100644 (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();