MDL-40563 improve jquery serving performance

It is not necessary to do full page init to access the plugin locations API.
This commit is contained in:
Petr Škoda
2013-07-12 22:38:56 +02:00
parent cba94cec14
commit 9ad8b423c2
+1 -5
View File
@@ -62,11 +62,7 @@ if ($component === 'core') {
}
} else {
define('ABORT_AFTER_CONFIG_CANCEL', true);
define('NO_MOODLE_COOKIES', true); // Session not used here.
define('NO_UPGRADE_CHECK', true); // Ignore upgrade check.
require("$CFG->dirroot/lib/setup.php");
$componentdir = get_component_directory($component);
$componentdir = core_component::get_component_directory($component);
}
if (!file_exists($componentdir) or !file_exists("$componentdir/jquery/plugins.php")) {