Skip to content

Commit

Permalink
Fix extension:outdated to correctly check extension name
Browse files Browse the repository at this point in the history
Bug: #231
  • Loading branch information
samwilson authored Apr 4, 2023
1 parent d32d6be commit 6488f06
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/Command/ExtensionOutdatedCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,13 @@ private function getAvailableExtensions(): ?array {
$this->io->error( "Unable to decode JSON in $extJsonFilename" );
return null;
}
return $extData;

// Reindex by name, because only the name is available from the wiki and not the short name.
$extsAll = [];
foreach ( $extData as $ext ) {
$extsAll[$ext['name']] = $ext;
}

return $extsAll;
}
}

0 comments on commit 6488f06

Please sign in to comment.