MDL-43504 Javascript: Frontpage collapsing should not depend on enableajax
This is an oversight, but we should not depend on the enableajax setting which we're trying to deprecate.
This commit is contained in:
+1
-1
@@ -1383,7 +1383,7 @@ class core_course_renderer extends plugin_renderer_base {
|
||||
protected function coursecat_include_js() {
|
||||
global $CFG;
|
||||
static $jsloaded = false;
|
||||
if (!$jsloaded && $CFG->enableajax) {
|
||||
if (!$jsloaded) {
|
||||
// We must only load this module once.
|
||||
$this->page->requires->yui_module('moodle-course-categoryexpander',
|
||||
'Y.Moodle.course.categoryexpander.init');
|
||||
|
||||
Reference in New Issue
Block a user