Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
MDL-24627 Unknown components are considered activity modules even if their name conta...
[moodle.git]
/
lib
/
moodlelib.php
diff --git
a/lib/moodlelib.php
b/lib/moodlelib.php
index
073cf57
..
96d46df
100644
(file)
--- a/
lib/moodlelib.php
+++ b/
lib/moodlelib.php
@@
-6867,6
+6867,11
@@
function normalize_component($component) {
} else {
list($type, $plugin) = explode('_', $component, 2);
+ $plugintypes = get_plugin_types(false);
+ if ($type !== 'core' and !array_key_exists($type, $plugintypes)) {
+ $type = 'mod';
+ $plugin = $component;
+ }
}
return array($type, $plugin);