MDL-40220 use new core_component::get_plugin_list()
This commit is contained in:
Vendored
+3
-3
@@ -954,7 +954,7 @@ abstract class cache_administration_helper extends cache_helper {
|
||||
*/
|
||||
public static function get_add_store_form($plugin) {
|
||||
global $CFG; // Needed for includes.
|
||||
$plugins = get_plugin_list('cachestore');
|
||||
$plugins = core_component::get_plugin_list('cachestore');
|
||||
if (!array_key_exists($plugin, $plugins)) {
|
||||
throw new coding_exception('Invalid cache plugin used when trying to create an edit form.');
|
||||
}
|
||||
@@ -986,7 +986,7 @@ abstract class cache_administration_helper extends cache_helper {
|
||||
*/
|
||||
public static function get_edit_store_form($plugin, $store) {
|
||||
global $CFG; // Needed for includes.
|
||||
$plugins = get_plugin_list('cachestore');
|
||||
$plugins = core_component::get_plugin_list('cachestore');
|
||||
if (!array_key_exists($plugin, $plugins)) {
|
||||
throw new coding_exception('Invalid cache plugin used when trying to create an edit form.');
|
||||
}
|
||||
@@ -1215,7 +1215,7 @@ abstract class cache_administration_helper extends cache_helper {
|
||||
*/
|
||||
public static function get_add_lock_form($plugin, array $lockplugin = null) {
|
||||
global $CFG; // Needed for includes.
|
||||
$plugins = get_plugin_list('cachelock');
|
||||
$plugins = core_component::get_plugin_list('cachelock');
|
||||
if (!array_key_exists($plugin, $plugins)) {
|
||||
throw new coding_exception('Invalid cache lock plugin requested when trying to create a form.');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user