diff --git a/course/format/weeks/format.php b/course/format/weeks/format.php index c54cefb7258..86b5eea0037 100644 --- a/course/format/weeks/format.php +++ b/course/format/weeks/format.php @@ -48,16 +48,15 @@ $strmoveup = get_string('moveup'); $strmovedown = get_string('movedown'); - if (!empty($USER->ajax) && debugging('', DEBUG_DEVELOPER)) { /// XXX TODO Debugging only temporary until fixed + if (!empty($USER->ajax)) { // If user doesnt want AJAX, then they wont get it, // from here everything detects $COURSE->javascriptportal - $COURSE->javascriptportal = new jsportal(); 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')); @@ -189,12 +188,22 @@ echo '