Skip to content

Commit

Permalink
MDL-40220 use new core_component::get_plugin_list_with_class()
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed Jul 16, 2013
1 parent bd3b3bb commit 059e08e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cache/locallib.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion lib/questionlib.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion mod/quiz/accessmanager.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}

/**
Expand Down

0 comments on commit 059e08e

Please sign in to comment.