1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-03-24 17:40:43 +01:00

[ticket/12610] Display the latest version and not the branch name in CLI

PHPBB3-12610
This commit is contained in:
Tristan Darricau 2016-02-18 22:33:39 +01:00 committed by Tristan Darricau
parent 0256c69191
commit c9e493a911
No known key found for this signature in database
GPG Key ID: 817043C2E29DB881
2 changed files with 6 additions and 11 deletions

View File

@ -1,10 +0,0 @@
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
</body>
</html>

View File

@ -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