MDL-62425 core_privacy: Add core to the list of components

This commit is contained in:
Andrew Nicols
2018-05-14 15:42:05 +08:00
parent 6df0fa92f3
commit 67b4cde9bd
+4 -1
View File
@@ -304,9 +304,12 @@ class manager {
* @return array the array of frankenstyle component names.
*/
protected function get_component_list() {
return array_keys(array_reduce(\core_component::get_component_list(), function($carry, $item) {
$components = array_keys(array_reduce(\core_component::get_component_list(), function($carry, $item) {
return array_merge($carry, $item);
}, []));
$components[] = 'core';
return $components;
}
/**