mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
MDL-40563 improve yui serving performance
It is not necessary to do full page init to access the plugin locations API.
This commit is contained in:
parent
23ee749bfb
commit
cba94cec14
2 changed files with 2 additions and 14 deletions
|
@ -87,12 +87,6 @@ foreach ($parts as $part) {
|
|||
$content .= "\n// Incorrect moodle module inclusion. Not enough component information in {$part}.\n";
|
||||
continue;
|
||||
}
|
||||
if (!defined('ABORT_AFTER_CONFIG_CANCEL')) {
|
||||
define('ABORT_AFTER_CONFIG_CANCEL', true);
|
||||
define('NO_UPGRADE_CHECK', true);
|
||||
define('NO_MOODLE_COOKIES', true);
|
||||
require($CFG->libdir.'/setup.php');
|
||||
}
|
||||
$revision = (int)array_shift($bits);
|
||||
if ($revision === -1) {
|
||||
// Revision -1 says please don't cache the JS
|
||||
|
@ -101,7 +95,7 @@ foreach ($parts as $part) {
|
|||
$frankenstyle = array_shift($bits);
|
||||
$filename = array_pop($bits);
|
||||
$modulename = $bits[0];
|
||||
$dir = get_component_directory($frankenstyle);
|
||||
$dir = core_component::get_component_directory($frankenstyle);
|
||||
|
||||
// For shifted YUI modules, we need the YUI module name in frankenstyle format.
|
||||
$frankenstylemodulename = join('-', array($version, $frankenstyle, $modulename));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue