]> git.mjollnir.org Git - moodle.git/commitdiff
ajaxlib MDL-19690 Fixed minor bug because of missing global
authorsamhemelryk <samhemelryk>
Wed, 8 Jul 2009 01:56:15 +0000 (01:56 +0000)
committersamhemelryk <samhemelryk>
Wed, 8 Jul 2009 01:56:15 +0000 (01:56 +0000)
lib/ajax/ajaxlib.php

index 305314d051c25f8052794615f51bd874eba7e4a5..897f12986a81053dcaf9b45a23ecc8c28a5414f4 100644 (file)
@@ -1285,7 +1285,7 @@ class jsportal {
      * Prints the JavaScript code needed to set up AJAX for the course.
      */
     function print_javascript($courseid, $return=false) {
-        global $CFG, $USER;
+        global $CFG, $USER, $OUTPUT;
 
         $blocksoutput = $output = '';
         for ($i=0; $i<count($this->blocks); $i++) {