From 09cdd1cdbb0d7a86332dbcd5a0d67bf4789dab7c Mon Sep 17 00:00:00 2001 From: kurund Date: Sun, 24 Aug 2014 19:06:35 +0530 Subject: [PATCH] fixes for CRM-15133 ---------------------------------------- * CRM-15133: Do not display upgrade reminder in footer if versionAlert is false https://issues.civicrm.org/jira/browse/CRM-15133 --- CRM/Utils/VersionCheck.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CRM/Utils/VersionCheck.php b/CRM/Utils/VersionCheck.php index bea90d1e17..84c7d67d01 100644 --- a/CRM/Utils/VersionCheck.php +++ b/CRM/Utils/VersionCheck.php @@ -165,7 +165,8 @@ class CRM_Utils_VersionCheck { */ public function newerVersion() { if ($this->latestVersion) { - if (version_compare($this->localVersion, $this->latestVersion) < 0) { + if ((version_compare($this->localVersion, $this->latestVersion) < 0) + && CRM_Core_BAO_Setting::getItem(CRM_Core_BAO_Setting::SYSTEM_PREFERENCES_NAME, 'versionAlert', NULL, TRUE)) { return $this->latestVersion; } } -- 2.25.1