From fa432cd32f6f071532f77ca9ee744e2ab4e25163 Mon Sep 17 00:00:00 2001 From: Andy Miller Date: Mon, 15 Jun 2015 16:03:22 -0600 Subject: [PATCH] Another incorrect slug name --- system/src/Grav/Console/Gpm/UninstallCommand.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/system/src/Grav/Console/Gpm/UninstallCommand.php b/system/src/Grav/Console/Gpm/UninstallCommand.php index 70eea9e00..8d32d685f 100644 --- a/system/src/Grav/Console/Gpm/UninstallCommand.php +++ b/system/src/Grav/Console/Gpm/UninstallCommand.php @@ -110,7 +110,7 @@ class UninstallCommand extends Command $this->output->write(" |- Checking destination... "); - $checks = $this->checkDestination($package); + $checks = $this->checkDestination($slug, $package); if (!$checks) { $this->output->writeln(" '- Installation failed or aborted."); @@ -163,15 +163,17 @@ class UninstallCommand extends Command return true; } + /** + * @param $slug * @param $package * * @return bool */ - private function checkDestination($package) + private function checkDestination($slug, $package) { - $path = self::getGrav()['locator']->findResource($package->package_type . '://' . $package->slug); + $path = self::getGrav()['locator']->findResource($package->package_type . '://' . $slug); $questionHelper = $this->getHelper('question'); $skipPrompt = $this->input->getOption('all-yes');