Actually remove a package

This commit is contained in:
Flavio Copes
2016-03-08 11:37:04 +01:00
parent b2a886fe88
commit c0f73bf6ed

View File

@@ -322,7 +322,6 @@ class AdminController
return true; return true;
} }
/** /**
* Handle removing a package * Handle removing a package
* *
@@ -342,10 +341,7 @@ class AdminController
require_once __DIR__ . '/gpm.php'; require_once __DIR__ . '/gpm.php';
$dependencies = $this->admin->dependenciesThatCanBeRemovedWhenRemoving($package); $dependencies = $this->admin->dependenciesThatCanBeRemovedWhenRemoving($package);
$result = \Grav\Plugin\Admin\Gpm::uninstall($package, []);
//TODO: uncomment to actually remove
$result = true;
// $result = \Grav\Plugin\Admin\Gpm::uninstall($package, []);
if ($result) { if ($result) {
$this->admin->json_response = ['status' => 'success', 'dependencies' => $dependencies, 'message' => $this->admin->translate('PLUGIN_ADMIN.UNINSTALL_SUCCESSFUL')]; $this->admin->json_response = ['status' => 'success', 'dependencies' => $dependencies, 'message' => $this->admin->translate('PLUGIN_ADMIN.UNINSTALL_SUCCESSFUL')];