From 8ba05940e9ee76e95ce808d8da163c2af29e4e93 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Tue, 24 May 2016 21:39:36 -0400 Subject: Filter non compatible plugins --- app/Console/PluginUpgradeCommand.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'app/Console') diff --git a/app/Console/PluginUpgradeCommand.php b/app/Console/PluginUpgradeCommand.php index 6ec5836d..839124b1 100644 --- a/app/Console/PluginUpgradeCommand.php +++ b/app/Console/PluginUpgradeCommand.php @@ -3,6 +3,7 @@ namespace Kanboard\Console; use Kanboard\Core\Plugin\Base as BasePlugin; +use Kanboard\Core\Plugin\Directory; use Kanboard\Core\Plugin\Installer; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; @@ -24,7 +25,7 @@ class PluginUpgradeCommand extends BaseCommand } $installer = new Installer($this->container); - $availablePlugins = $this->httpClient->getJson(PLUGIN_API_URL); + $availablePlugins = Directory::getInstance($this->container)->getAvailablePlugins(); foreach ($this->pluginLoader->getPlugins() as $installedPlugin) { $pluginDetails = $this->getPluginDetails($availablePlugins, $installedPlugin); -- cgit v1.2.3