mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
MDL-44064 editor_atto: Do not die when a plugin is missing
This commit is contained in:
parent
34f5867a11
commit
60a051d471
@ -98,6 +98,12 @@ class atto_texteditor extends texteditor {
|
||||
foreach ($groups as $group => $plugins) {
|
||||
$groupplugins = array();
|
||||
foreach ($plugins as $plugin) {
|
||||
// Do not die on missing plugin.
|
||||
if (!core_component::get_component_directory('atto_' . $plugin)) {
|
||||
debugging('Missing atto plugin ' . $plugin, DEBUG_DEVELOPER);
|
||||
continue;
|
||||
}
|
||||
|
||||
$jsplugin = array();
|
||||
$jsplugin['name'] = $plugin;
|
||||
$jsplugin['params'] = array();
|
||||
|
Loading…
x
Reference in New Issue
Block a user