From: kurund Date: Sun, 24 Aug 2014 13:36:35 +0000 (+0530) Subject: fixes for CRM-15133 X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=09cdd1cdbb0d7a86332dbcd5a0d67bf4789dab7c;p=civicrm-core.git 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 --- 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; } }