Trim lines

This commit is contained in:
Franz Liedke 2017-02-03 20:28:04 +01:00
parent d3753d94ae
commit b7d6ba4893
No known key found for this signature in database
GPG Key ID: 9A0231A879B055F4

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