mirror of
https://github.com/flarum/framework.git
synced 2024-11-25 09:41:49 +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)
|
public function enable($extension)
|
||||||
{
|
{
|
||||||
if (! $this->isEnabled($extension)) {
|
if (! $this->isEnabled($extension)) {
|
||||||
|
$enabled = $this->getEnabled();
|
||||||
|
|
||||||
$enabled[] = $extension;
|
$enabled[] = $extension;
|
||||||
|
|
||||||
$class = $this->load($extension);
|
$class = $this->load($extension);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user