Merge branch 'MDL-62896-35' of git://github.com/k-holland/moodle into MOODLE_35_STABLE

This commit is contained in:
Andrew Nicols
2018-08-14 08:05:21 +08:00
@@ -70,7 +70,8 @@ class metadata_registry {
$internaldata['compliant'] = false;
}
// Check to see if we are an external plugin.
$componentshortname = explode('_', $component);
// Plugin names can contain _ characters, limit to 2 to just remove initial plugintype.
$componentshortname = explode('_', $component, 2);
$shortname = array_pop($componentshortname);
if (isset($contributedplugins[$plugintype][$shortname])) {
$internaldata['external'] = true;