mirror of
https://github.com/flarum/framework.git
synced 2025-01-23 00:00:45 +08:00
Fix extension names not being displayed when running migrations
This commit is contained in:
parent
a46396e944
commit
c9c9af195c
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue
Block a user