From: Coleman Watts Date: Wed, 18 Nov 2015 21:52:31 +0000 (-0500) Subject: CRM-13823 - Extension status msg tweak X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=c08d5b15662fced0afb38ff215594bfa6a7a1ef8;p=civicrm-core.git CRM-13823 - Extension status msg tweak --- diff --git a/CRM/Utils/Check/Env.php b/CRM/Utils/Check/Env.php index 5927d7b5de..bae90c47df 100644 --- a/CRM/Utils/Check/Env.php +++ b/CRM/Utils/Check/Env.php @@ -506,7 +506,7 @@ class CRM_Utils_Check_Env { if (!$okextensions && !$updates && !$errors) { return array(new CRM_Utils_Check_Message( - __FUNCTION__, + 'extensionsOk', ts('No extensions installed. Browse available extensions.', array( 1 => CRM_Utils_System::url('civicrm/admin/extensions', 'reset=1'), )), @@ -537,10 +537,15 @@ class CRM_Utils_Check_Env { } if ($okextensions) { + if ($updates || $errors) { + $message = ts('1 extension is up-to-date:', array('plural' => '%count extensions are up-to-date:', 'count' => count($okextensions))); + } + else { + $message = ts('All extensions are up-to-date:'); + } $messages[] = new CRM_Utils_Check_Message( 'extensionsOk', - ts('1 extension is up-to-date:', array('plural' => '%count extensions are up-to-date:', 'count' => count($okextensions))) . - '', + $message . '', ts('Extensions'), \Psr\Log\LogLevel::INFO, 'fa-plug'