Fixed GPM update issue with filtered slugs #1711

This commit is contained in:
Andy Miller
2017-10-23 16:13:22 -06:00
parent ca645ef476
commit 0668a47758
2 changed files with 4 additions and 1 deletions

View File

@@ -3,6 +3,8 @@
1. [](#new)
* Added Page `media_order` capability to manually order page media via a page header
1. [](#bugfix)
* Fixed GPM update issue with filtered slugs [#1711](https://github.com/getgrav/grav/issues/1711)
# v1.3.7
## 10/18/2017

View File

@@ -182,7 +182,7 @@ class UpdateCommand extends ConsoleCommand
$index = 0;
foreach ($this->data as $packages) {
foreach ($packages as $slug => $package) {
if (count($limit_to) && !array_key_exists($slug, $limit_to)) {
if (count($only_packages) && !array_key_exists($slug, $limit_to)) {
continue;
}
@@ -276,6 +276,7 @@ class UpdateCommand extends ConsoleCommand
$this->output->writeln('');
$this->output->writeln("Packages not found or not requiring updates: <red>" . implode('</red>, <red>',
$ignore) . "</red>");
}
}