From a978bddea3789d7097fe27f2078610752186d0e4 Mon Sep 17 00:00:00 2001 From: tjhunt Date: Wed, 17 Jun 2009 10:29:42 +0000 Subject: [PATCH] javascript: MDL-16695 print_footer('empty'); was not printing the necessary end of page code. --- lib/weblib.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/weblib.php b/lib/weblib.php index a47de9704c..1d17043558 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -2721,7 +2721,7 @@ function print_footer($course=NULL, $usercourse=NULL, $return=false) { //1.8 theme compatibility $output .= "\n"; // content div } - $output .= "\n\n\n"; // close page div started in header + $output .= '\n\n' . $PAGE->requires->get_end_code() . '\n'; // close page div started in header if ($return) { return $output; } else { @@ -3157,6 +3157,8 @@ function theme_setup($theme = '', $params=NULL) { /// Load up the theme config $THEME = NULL; // Just to be sure include($CFG->themedir .'/'. $theme .'/config.php'); // Main config for current theme + $THEME->name = $theme; + $THEME->dir = $CFG->themedir .'/'. $theme; /// Put together the parameters if (!$params) { -- 2.39.5