mirror of
https://github.com/moodle/moodle.git
synced 2025-04-14 13:02:07 +02:00
Merge branch 'MDL-75386-master' of https://github.com/andrewnicols/moodle
This commit is contained in:
commit
c5ea7a1fab
@ -957,12 +957,25 @@ class theme_config {
|
||||
|
||||
// First editor plugins.
|
||||
$plugins = core_component::get_plugin_list('editor');
|
||||
foreach ($plugins as $plugin=>$fulldir) {
|
||||
foreach ($plugins as $plugin => $fulldir) {
|
||||
$sheetfile = "$fulldir/editor_styles.css";
|
||||
if (is_readable($sheetfile)) {
|
||||
$files['plugin_'.$plugin] = $sheetfile;
|
||||
}
|
||||
|
||||
$subplugintypes = core_component::get_subplugins("editor_{$plugin}");
|
||||
// Fetch sheets for any editor subplugins.
|
||||
foreach ($subplugintypes as $plugintype => $subplugins) {
|
||||
foreach ($subplugins as $subplugin) {
|
||||
$plugindir = core_component::get_plugin_directory($plugintype, $subplugin);
|
||||
$sheetfile = "{$plugindir}/editor_styles.css";
|
||||
if (is_readable($sheetfile)) {
|
||||
$files["{$plugintype}_{$subplugin}"] = $sheetfile;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Then parent themes - base first, the immediate parent last.
|
||||
foreach (array_reverse($this->parent_configs) as $parent_config) {
|
||||
if (empty($parent_config->editor_sheets)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user