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:
parent
0256c69191
commit
c9e493a911
@ -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>
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user