]> git.mjollnir.org Git - moodle.git/commitdiff
Comment out an if (ajaxenabled()) check that was stopping any javascript included...
authortjhunt <tjhunt>
Wed, 26 Sep 2007 17:48:27 +0000 (17:48 +0000)
committertjhunt <tjhunt>
Wed, 26 Sep 2007 17:48:27 +0000 (17:48 +0000)
http://moodle.org/mod/forum/discuss.php?d=81050 for discussion.

lib/weblib.php

index 13277782a25c1b80efa84600c8db14490a6311d3..657fa51144988189e22db7380f1c854fcc766f8b 100644 (file)
@@ -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 = '<meta http-equiv="content-type" content="text/html; charset=utf-8" />'. "\n". $meta ."\n";
+    $meta = '<meta http-equiv="content-type" content="text/html; charset=utf-8" />' .
+            "\n" . $meta . "\n";
     if (!$usexml) {
         @header('Content-type: text/html; charset=utf-8');
     }