mirror of
https://github.com/flarum/framework.git
synced 2024-11-25 09:41:49 +08:00
Trim lines
This commit is contained in:
parent
d3753d94ae
commit
b7d6ba4893
|
@ -114,7 +114,7 @@ class ExtensionManager
|
|||
{
|
||||
if (! $this->isEnabled($name)) {
|
||||
$extension = $this->getExtension($name);
|
||||
|
||||
|
||||
$this->dispatcher->fire(new ExtensionWillBeEnabled($extension));
|
||||
|
||||
$enabled = $this->getEnabled();
|
||||
|
@ -144,7 +144,7 @@ class ExtensionManager
|
|||
|
||||
if (($k = array_search($name, $enabled)) !== false) {
|
||||
$extension = $this->getExtension($name);
|
||||
|
||||
|
||||
$this->dispatcher->fire(new ExtensionWillBeDisabled($extension));
|
||||
|
||||
unset($enabled[$k]);
|
||||
|
|
Loading…
Reference in New Issue
Block a user