mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
[ticket/12610] Display the latest version and not the branch name in CLI
PHPBB3-12610
This commit is contained in:
committed by
Tristan Darricau
parent
0256c69191
commit
c9e493a911
@@ -237,9 +237,14 @@ class check extends \phpbb\console\command\command
|
||||
$updates_available = $ext_manager->version_check($md_manager, $recheck, false, $stability);
|
||||
if (!empty($updates_available))
|
||||
{
|
||||
$versions = array_map(function($entry)
|
||||
{
|
||||
return $entry['current'];
|
||||
}, $updates_available);
|
||||
|
||||
$message .= sprintf(" | <comment>%-{$current_version_length}s</comment> | %s",
|
||||
$metadata['version'],
|
||||
implode(', ', array_keys($updates_available))
|
||||
implode(', ', $versions)
|
||||
);
|
||||
}
|
||||
else
|
||||
|
Reference in New Issue
Block a user