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