From: vyshane Date: Wed, 18 Oct 2006 07:05:21 +0000 (+0000) Subject: Merged from 1.7 X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=8b8a8779dc74146ab2e9ba8a2f87463dfe6ee9e1;p=moodle.git Merged from 1.7 --- diff --git a/course/format/topics/format.php b/course/format/topics/format.php index 1017d93faa..8006bf66cb 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 86b5eea003..88594db454 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 85064de410..f863b847b8 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"; + ?> + +