fixes for CRM-15133
authorkurund <kurund@civicrm.org>
Sun, 24 Aug 2014 13:36:35 +0000 (19:06 +0530)
committerkurund <kurund@civicrm.org>
Sun, 24 Aug 2014 13:36:35 +0000 (19:06 +0530)
----------------------------------------
* 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

index bea90d1e17e09f280b4319c25fa108efc9964912..84c7d67d01cfae75483c9959a4cbbec7a5b1be77 100644 (file)
@@ -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;
       }
     }