fixes #800, forgot these controllers

This commit is contained in:
Daniel Klabbers 2016-02-13 20:33:33 +01:00
parent 5179d2eb52
commit ef83a4681b
2 changed files with 8 additions and 4 deletions

View File

@ -37,7 +37,9 @@ class UninstallExtensionController extends AbstractDeleteController
$name = array_get($request->getQueryParams(), 'name');
$this->extensions->disable($name);
$this->extensions->uninstall($name);
$extension = $this->extensions->getExtension($name);
$this->extensions->disable($extension);
$this->extensions->uninstall($extension);
}
}

View File

@ -42,10 +42,12 @@ class UpdateExtensionController implements ControllerInterface
$enabled = array_get($request->getParsedBody(), 'enabled');
$name = array_get($request->getQueryParams(), 'name');
$extension = $this->extensions->getExtension($name);
if ($enabled === true) {
$this->extensions->enable($name);
$this->extensions->enable($extension);
} elseif ($enabled === false) {
$this->extensions->disable($name);
$this->extensions->disable($extension);
}
}
}