mirror of
https://github.com/moodle/moodle.git
synced 2025-08-07 18:06:51 +02:00
MDL-55133 javascript: Correctly use component names in requirejs
Core subsystems must use the 'core_' prefix always.
This commit is contained in:
parent
f71eaa794d
commit
a066cfc843
3 changed files with 97 additions and 2 deletions
|
@ -90,7 +90,7 @@ class core_requirejs {
|
|||
$subsystems = core_component::get_core_subsystems();
|
||||
foreach ($subsystems as $subsystem => $dir) {
|
||||
if (!empty($dir) && is_dir($dir . '/amd')) {
|
||||
$jsdirs[$subsystem] = $dir . '/amd';
|
||||
$jsdirs['core_' . $subsystem] = $dir . '/amd';
|
||||
}
|
||||
}
|
||||
$plugintypes = core_component::get_plugin_types();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue