diff --git a/lib/outputrequirementslib.php b/lib/outputrequirementslib.php index 462a3b0b647..d530d797e2d 100644 --- a/lib/outputrequirementslib.php +++ b/lib/outputrequirementslib.php @@ -1249,14 +1249,25 @@ class page_requirements_manager { $code = ''; $jsrev = $this->get_jsrev(); + + $yuiformat = '-min'; + if ($this->yui3loader->filter === 'RAW') { + $yuiformat = ''; + } + + $format = '-min'; + if ($this->YUI_config->groups['moodle']['filter'] === 'DEBUG') { + $format = '-debug'; + } + $baserollups = array( - 'rollup/' . $CFG->yui3version . '/yui-moodlesimple-min.js', + 'rollup/' . $CFG->yui3version . '/yui-moodlesimple' . $yuiformat . '.js', ); // The reason for separate rollups is that the Y = YUI().use('*') call is run async and // it gets it's knickers in a twist. Putting it in a separate