MDL-40220 use new core_component::get_plugin_list()
This commit is contained in:
@@ -135,7 +135,7 @@ class tiynce_subplugins_settings extends admin_setting {
|
||||
return true;
|
||||
}
|
||||
|
||||
$subplugins = get_plugin_list('tinymce');
|
||||
$subplugins = core_component::get_plugin_list('tinymce');
|
||||
foreach ($subplugins as $name=>$dir) {
|
||||
if (stripos($name, $query) !== false) {
|
||||
return true;
|
||||
@@ -173,7 +173,7 @@ class tiynce_subplugins_settings extends admin_setting {
|
||||
$struninstall = get_string('uninstallplugin', 'core_admin');
|
||||
$strversion = get_string('version');
|
||||
|
||||
$subplugins = get_plugin_list('tinymce');
|
||||
$subplugins = core_component::get_plugin_list('tinymce');
|
||||
|
||||
$return = $OUTPUT->heading(get_string('subplugintype_tinymce_plural', 'editor_tinymce'), 3, 'main', true);
|
||||
$return .= $OUTPUT->box_start('generalbox tinymcesubplugins');
|
||||
|
||||
@@ -68,7 +68,7 @@ foreach ($string as $key=>$value) {
|
||||
}
|
||||
|
||||
// Add subplugin strings, accept only those with proper pluginname prefix with colon.
|
||||
foreach (get_plugin_list('tinymce') as $component => $ignored) {
|
||||
foreach (core_component::get_plugin_list('tinymce') as $component => $ignored) {
|
||||
$componentstrings = get_string_manager()->load_component_strings(
|
||||
'tinymce_' . $component, $lang);
|
||||
foreach ($componentstrings as $key => $value) {
|
||||
|
||||
@@ -378,7 +378,7 @@ abstract class editor_tinymce_plugin {
|
||||
global $CFG;
|
||||
|
||||
// Get list of plugin directories.
|
||||
$plugins = get_plugin_list('tinymce');
|
||||
$plugins = core_component::get_plugin_list('tinymce');
|
||||
|
||||
// Get list of disabled subplugins.
|
||||
$disabled = array();
|
||||
|
||||
Reference in New Issue
Block a user