mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00: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
2 changed files with 6 additions and 11 deletions
|
@ -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);
|
$updates_available = $ext_manager->version_check($md_manager, $recheck, false, $stability);
|
||||||
if (!empty($updates_available))
|
if (!empty($updates_available))
|
||||||
{
|
{
|
||||||
|
$versions = array_map(function($entry)
|
||||||
|
{
|
||||||
|
return $entry['current'];
|
||||||
|
}, $updates_available);
|
||||||
|
|
||||||
$message .= sprintf(" | <comment>%-{$current_version_length}s</comment> | %s",
|
$message .= sprintf(" | <comment>%-{$current_version_length}s</comment> | %s",
|
||||||
$metadata['version'],
|
$metadata['version'],
|
||||||
implode(', ', array_keys($updates_available))
|
implode(', ', $versions)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Reference in a new issue