Skip to content

Commit

Permalink
MDL-62896 Privacy: External plugin Additional label update.
Browse files Browse the repository at this point in the history
  • Loading branch information
k-holland committed Aug 13, 2018
1 parent 7c730df commit 5450a19
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion admin/tool/dataprivacy/classes/metadata_registry.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ public function get_registry_metadata() {
$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;
Expand Down

0 comments on commit 5450a19

Please sign in to comment.