From e6f94aaa11c20058d323dc1d84e17d092badbc31 Mon Sep 17 00:00:00 2001 From: "Eloy Lafuente (stronk7)" Date: Wed, 20 Mar 2013 01:02:45 +0100 Subject: [PATCH 1/1] MDL-38515 JavaScript: Partially revert 4f65d03b08 It was going to cause some continuous logging in the console annoying developers on 2.5 all the time. It may be reintroduced once filepickers are converted to proper YUI modules. --- lib/outputrequirementslib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/outputrequirementslib.php b/lib/outputrequirementslib.php index f4e5004..2129100 100644 --- a/lib/outputrequirementslib.php +++ b/lib/outputrequirementslib.php @@ -197,7 +197,7 @@ class page_requirements_manager { ) ) )); - $configname = $this->YUI_config->set_config_function("var p = me.path, b = me.name.replace(/^moodle-/,'').split('-', 3), n = b.pop();if (!b.length) {Y.log('Attempt to load invalid module name: ' + me.name, 'error'); return;} if (/(skin|core)/.test(n)) {n = b.pop();me.type = 'css';};me.path = b.join('-')+'/'+n+'/'+n+'-min.'+me.type;"); + $configname = $this->YUI_config->set_config_function("var p = me.path, b = me.name.replace(/^moodle-/,'').split('-', 3), n = b.pop();if (/(skin|core)/.test(n)) {n = b.pop();me.type = 'css';};me.path = b.join('-')+'/'+n+'/'+n+'-min.'+me.type;"); $this->YUI_config->add_group('moodle', array( 'name' => 'moodle', 'base' => $CFG->httpswwwroot . '/theme/yui_combo.php'.$sep.'moodle/'.$jsrev.'/', -- 1.8.0.1