Trim lines

This commit is contained in:
Franz Liedke 2017-02-03 20:28:04 +01:00
parent 3b97eaa658
commit 3c02a79251

View File

@ -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]);