Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
moodle
moodle
Commits
2384d331
Commit
2384d331
authored
Oct 24, 2013
by
Petr Škoda
Browse files
MDL-42525 improve performance of plugin listing
parent
5386f0bb
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/classes/plugin_manager.php
View file @
2384d331
...
...
@@ -604,9 +604,9 @@ class core_plugin_manager {
*/
public
function
get_plugin_info
(
$component
)
{
list
(
$type
,
$name
)
=
core_component
::
normalize_component
(
$component
);
$plugins
=
$this
->
get_plugins
(
);
if
(
isset
(
$plugins
[
$
type
][
$
name
]))
{
return
$plugins
[
$
type
][
$
name
];
$plugins
=
$this
->
get_plugins
_of_type
(
$type
);
if
(
isset
(
$plugins
[
$name
]))
{
return
$plugins
[
$name
];
}
else
{
return
null
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment