diff options
author | robocoder <anthon.pang@gmail.com> | 2011-12-04 02:22:56 +0400 |
---|---|---|
committer | robocoder <anthon.pang@gmail.com> | 2011-12-04 02:22:56 +0400 |
commit | b6e5f502a47127cadfa65c186a912ee9efee17fa (patch) | |
tree | 43a1f41a1cb1339c9e06a0d02e817b052d52a199 /plugins/SecurityInfo/PhpSecInfo | |
parent | 621e56f93f970e868608f6615be70b195d1b3ce6 (diff) |
refs #2806 - fix message
git-svn-id: http://dev.piwik.org/svn/trunk@5526 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'plugins/SecurityInfo/PhpSecInfo')
-rw-r--r-- | plugins/SecurityInfo/PhpSecInfo/Test/Application/php.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/SecurityInfo/PhpSecInfo/Test/Application/php.php b/plugins/SecurityInfo/PhpSecInfo/Test/Application/php.php index 264f58ca84..919d73a2cb 100644 --- a/plugins/SecurityInfo/PhpSecInfo/Test/Application/php.php +++ b/plugins/SecurityInfo/PhpSecInfo/Test/Application/php.php @@ -58,7 +58,10 @@ class PhpSecInfo_Test_Application_Php extends PhpSecInfo_Test_Application function _setMessages() { parent::_setMessages(); - $this->setMessageForResult(PHPSECINFO_TEST_RESULT_OK, 'en', "You are running PHP ".$this->recommended_value." (the latest version)."); + $this->setMessageForResult(PHPSECINFO_TEST_RESULT_OK, 'en', "You are running PHP ".$this->current_value. + ($this->current_value == $this->recommended_value + ? " (the latest version)." + : ". The latest version is ".$this->recommended_value.".")); $this->setMessageForResult(PHPSECINFO_TEST_RESULT_NOTICE, 'en', "You are running PHP ".$this->current_value.". The latest version of PHP is ".$this->recommended_value."."); $this->setMessageForResult(PHPSECINFO_TEST_RESULT_WARN, 'en', "You are running PHP ".$this->current_value." which is really old. We recommend running the latest (stable) version of PHP which includes numerous bug fixes and security fixes."); $this->setMessageForResult(PHPSECINFO_TEST_RESULT_ERROR, 'en', "Unable to determine the latest version of PHP available."); |