diff --git a/course/format/topics/format.php b/course/format/topics/format.php
index 1017d93faa6..8006bf66cb7 100644
--- a/course/format/topics/format.php
+++ b/course/format/topics/format.php
@@ -71,11 +71,6 @@
print_require_js(array('yui_yahoo','yui_dom','yui_event','yui_dragdrop', 'yui_connection',
'ajaxcourse_blocks','ajaxcourse_sections','ajaxcourse'));
-
- //javascript logging facilities
- if (debugging()) {
- print_require_js(Array('yui_logger'));
- }
}
}
diff --git a/course/format/weeks/format.php b/course/format/weeks/format.php
index 86b5eea0037..88594db4549 100644
--- a/course/format/weeks/format.php
+++ b/course/format/weeks/format.php
@@ -56,11 +56,6 @@
print_require_js(array('yui_yahoo','yui_dom','yui_event','yui_dragdrop', 'yui_connection',
'ajaxcourse_blocks','ajaxcourse_sections','ajaxcourse'));
-
- //javascript logging facilities
- if (debugging()) {
- print_require_js(Array('yui_logger'));
- }
}
}
diff --git a/lib/ajax/ajaxlib.php b/lib/ajax/ajaxlib.php
index 85064de410a..f863b847b80 100644
--- a/lib/ajax/ajaxlib.php
+++ b/lib/ajax/ajaxlib.php
@@ -1,8 +1,9 @@
wwwroot.''.$list[$i]."'>\n";
}
}
+
+ if (debugging('', DEBUG_DEVELOPER)) {
+ echo "\n";
+
+ // Dependencies for the logger.
+ echo "";
+
+ // FIXME: Below might get included more than once.
+ echo "\n";
+ echo "\n";
+ echo "\n";
+ echo "\n";
+ ?>
+
+