diff --git a/cache/locallib.php b/cache/locallib.php index c28de55c85b1e..860fb37696390 100644 --- a/cache/locallib.php +++ b/cache/locallib.php @@ -1191,7 +1191,7 @@ public static function get_lock_summaries() { * @return array */ public static function get_addable_lock_options() { - $plugins = get_plugin_list_with_class('cachelock', '', 'lib.php'); + $plugins = core_component::get_plugin_list_with_class('cachelock', '', 'lib.php'); $options = array(); $len = strlen('cachelock_'); foreach ($plugins as $plugin => $class) { diff --git a/lib/questionlib.php b/lib/questionlib.php index 86abddccdb7c3..df181a260d89c 100644 --- a/lib/questionlib.php +++ b/lib/questionlib.php @@ -1232,7 +1232,7 @@ function get_import_export_formats($type) { global $CFG; require_once($CFG->dirroot . '/question/format.php'); - $formatclasses = get_plugin_list_with_class('qformat', '', 'format.php'); + $formatclasses = core_component::get_plugin_list_with_class('qformat', '', 'format.php'); $fileformatname = array(); foreach ($formatclasses as $component => $formatclass) { diff --git a/mod/quiz/accessmanager.php b/mod/quiz/accessmanager.php index 4d7ad31b6e16a..bce1dcef4bfa6 100644 --- a/mod/quiz/accessmanager.php +++ b/mod/quiz/accessmanager.php @@ -90,7 +90,7 @@ protected function make_rules($quizobj, $timenow, $canignoretimelimits) { * @return array of all the installed rule class names. */ protected static function get_rule_classes() { - return get_plugin_list_with_class('quizaccess', '', 'rule.php'); + return core_component::get_plugin_list_with_class('quizaccess', '', 'rule.php'); } /**