----------------------------------------
* CRM-15133: Do not display upgrade reminder in footer if versionAlert is false
https://issues.civicrm.org/jira/browse/CRM-15133
*/
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;
}
}