diff options
| author | Tristan Darricau <tristan.darricau@sensiolabs.com> | 2016-02-18 22:33:39 +0100 | 
|---|---|---|
| committer | Tristan Darricau <github@nicofuma.fr> | 2016-12-03 16:37:35 +0100 | 
| commit | c9e493a911d8296ce1ccca5de8ec4c9f84e1983d (patch) | |
| tree | 86eaa769363e8e8db9a4e0551ce781d1401350ab | |
| parent | 0256c69191db7b2102d5fb338401ab3f58b118c6 (diff) | |
| download | forums-c9e493a911d8296ce1ccca5de8ec4c9f84e1983d.tar forums-c9e493a911d8296ce1ccca5de8ec4c9f84e1983d.tar.gz forums-c9e493a911d8296ce1ccca5de8ec4c9f84e1983d.tar.bz2 forums-c9e493a911d8296ce1ccca5de8ec4c9f84e1983d.tar.xz forums-c9e493a911d8296ce1ccca5de8ec4c9f84e1983d.zip  | |
[ticket/12610] Display the latest version and not the branch name in CLI
PHPBB3-12610
| -rw-r--r-- | phpBB/ext/index.htm | 10 | ||||
| -rw-r--r-- | phpBB/phpbb/console/command/update/check.php | 7 | 
2 files changed, 6 insertions, 11 deletions
diff --git a/phpBB/ext/index.htm b/phpBB/ext/index.htm deleted file mode 100644 index ee1f723a7d..0000000000 --- a/phpBB/ext/index.htm +++ /dev/null @@ -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> diff --git a/phpBB/phpbb/console/command/update/check.php b/phpBB/phpbb/console/command/update/check.php index 03dd313291..7c1e52c955 100644 --- a/phpBB/phpbb/console/command/update/check.php +++ b/phpBB/phpbb/console/command/update/check.php @@ -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  | 
