ajaxlib MDL-19690 Fixed minor bug because of missing global

This commit is contained in:
samhemelryk
2009-07-08 01:56:15 +00:00
parent 405efa5f95
commit 803dc07443
+1 -1
View 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++) {