mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 01:16:44 +02:00
MDL-50645 cache: get_plugins_with_function for more than one plugintype
This commit is contained in:
parent
9effa14810
commit
592ea4b975
2 changed files with 9 additions and 7 deletions
|
@ -69,13 +69,13 @@ class manager {
|
|||
}
|
||||
|
||||
// Plugins.
|
||||
$types = \core_component::get_plugin_types();
|
||||
foreach ($types as $type => $dir) {
|
||||
$pluginlist = get_plugin_list_with_function($type, "myprofile_navigation", "lib.php");
|
||||
foreach ($pluginlist as $function) {
|
||||
$pluginswithfunction = get_plugins_with_function('myprofile_navigation', 'lib.php');
|
||||
foreach ($pluginswithfunction as $plugins) {
|
||||
foreach ($plugins as $function) {
|
||||
$function($tree, $user, $iscurrentuser, $course);
|
||||
}
|
||||
}
|
||||
|
||||
$tree->sort_categories();
|
||||
return $tree;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue