MDL-40220 use new core_component::get_plugin_list()
This commit is contained in:
+2
-2
@@ -609,7 +609,7 @@ class theme_config {
|
||||
$files = array();
|
||||
|
||||
// first editor plugins
|
||||
$plugins = get_plugin_list('editor');
|
||||
$plugins = core_component::get_plugin_list('editor');
|
||||
foreach ($plugins as $plugin=>$fulldir) {
|
||||
$sheetfile = "$fulldir/editor_styles.css";
|
||||
if (is_readable($sheetfile)) {
|
||||
@@ -778,7 +778,7 @@ class theme_config {
|
||||
if ($type === 'theme' || (!empty($excludes[$type]) and $excludes[$type] === true)) {
|
||||
continue;
|
||||
}
|
||||
$plugins = get_plugin_list($type);
|
||||
$plugins = core_component::get_plugin_list($type);
|
||||
foreach ($plugins as $plugin=>$fulldir) {
|
||||
if (!empty($excludes[$type]) and is_array($excludes[$type])
|
||||
and in_array($plugin, $excludes[$type])) {
|
||||
|
||||
Reference in New Issue
Block a user