mirror of
https://github.com/flarum/framework.git
synced 2024-12-02 23:23:52 +08:00
Trim lines
This commit is contained in:
parent
3b97eaa658
commit
3c02a79251
|
@ -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