PEAR check: show version again, if available, instead of just "Yes"

This commit is contained in:
Ralf Becker 2014-08-27 12:16:16 +00:00
parent a2c60633c6
commit a025e4f5a5

View File

@ -413,7 +413,8 @@ function pear_check($package,$args)
$available = $found && (!$min_version || version_compare($min_version,$version_available) <= 0); $available = $found && (!$min_version || version_compare($min_version,$version_available) <= 0);
echo '<div>'.($available ? $passed_icon : $warning_icon).' <span'.($available ? '' : ' class="setup_warning"').'>'. echo '<div>'.($available ? $passed_icon : $warning_icon).' <span'.($available ? '' : ' class="setup_warning"').'>'.
lang('Checking PEAR%1 is installed',($package?($channel?' '.$channel.'/':'::').$package:'').($min_version?" ($min_version)":'')).': '. lang('Checking PEAR%1 is installed',($package?($channel?' '.$channel.'/':'::').$package:'').($min_version?" ($min_version)":'')).': '.
($available ? lang('True') : ($found ? lang('Found, but unknown version') : lang('False')))."</span></div>\n"; ($available ? ($version_available ? $version_available : lang('True')) :
($found ? lang('Found, but unknown version') : lang('False')))."</span></div>\n";
if (!$available) // give further info only if not availible if (!$available) // give further info only if not availible
{ {