mirror of
https://github.com/flarum/framework.git
synced 2024-11-25 09:32:58 +08:00
Fix enable extension in EntensionManager
This commit is contained in:
parent
753a846e7a
commit
e35bb9e400
|
@ -49,6 +49,8 @@ class ExtensionManager
|
|||
public function enable($extension)
|
||||
{
|
||||
if (! $this->isEnabled($extension)) {
|
||||
$enabled = $this->getEnabled();
|
||||
|
||||
$enabled[] = $extension;
|
||||
|
||||
$class = $this->load($extension);
|
||||
|
|
Loading…
Reference in New Issue
Block a user