From c6f9234ce38fc6e9d42d88381c902e1c32282cf7 Mon Sep 17 00:00:00 2001 From: tjhunt Date: Wed, 26 Sep 2007 17:48:27 +0000 Subject: [PATCH] Comment out an if (ajaxenabled()) check that was stopping any javascript included with require_js before print_header from being included, (but not js included afterwareds). See http://moodle.org/mod/forum/discuss.php?d=81050 for discussion. --- lib/weblib.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/weblib.php b/lib/weblib.php index 13277782a2..657fa51144 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -2325,9 +2325,9 @@ function print_header ($title='', $heading='', $navigation='', $focus='', /// Add the required JavaScript Libraries for AJAX - if (!empty($CFG->enableajax)) { +// if (!empty($CFG->enableajax)) { // This is the way all JS should be included, so get rid of the test. $meta .= "\n".require_js(); - } +// } /// Set up some navigation variables @@ -2385,7 +2385,8 @@ function print_header ($title='', $heading='', $navigation='', $focus='', } - $meta = ''. "\n". $meta ."\n"; + $meta = '' . + "\n" . $meta . "\n"; if (!$usexml) { @header('Content-type: text/html; charset=utf-8'); } -- 2.39.5