Fix extension names not being displayed when running migrations

This commit is contained in:
Toby Zerner 2018-11-14 16:28:00 +10:30
parent a46396e944
commit c9c9af195c

View File

@ -270,11 +270,16 @@ class ExtensionManager
*/
public function getEnabledExtensions()
{
$enabled = [];
$extensions = $this->getExtensions();
return array_filter(array_map(function ($id) use ($extensions) {
return $extensions[$id] ?? null;
}, $this->getEnabled()));
foreach ($this->getEnabled() as $id) {
if (isset($extensions[$id])) {
$enabled[$id] = $extensions[$id];
}
}
return $enabled;
}
/**