From: Tim Otten Date: Wed, 27 Jan 2016 23:14:48 +0000 (-0800) Subject: CRM_Utils_VersionCheck - Don't display warning on first login X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=5716ece537eae6acf530927a5c15a052f964b82e;p=civicrm-core.git CRM_Utils_VersionCheck - Don't display warning on first login Using `$config->uploadDir` will trigger automatic setup for the dir. Using `Civi::paths->getPath()` does not. --- diff --git a/CRM/Utils/VersionCheck.php b/CRM/Utils/VersionCheck.php index 316672db4d..9b51ed6e94 100644 --- a/CRM/Utils/VersionCheck.php +++ b/CRM/Utils/VersionCheck.php @@ -32,7 +32,7 @@ */ class CRM_Utils_VersionCheck { const - CACHEFILE_NAME = '[civicrm.files]/persist/version-info-cache.json', + CACHEFILE_NAME = 'version-info-cache.json', // after this length of time we fall back on poor-man's cron (7+ days) CACHEFILE_EXPIRE = 605000; @@ -92,7 +92,7 @@ class CRM_Utils_VersionCheck { public function __construct() { $this->localVersion = CRM_Utils_System::version(); $this->localMajorVersion = $this->getMajorVersion($this->localVersion); - $this->cacheFile = Civi::paths()->getPath(self::CACHEFILE_NAME); + $this->cacheFile = CRM_Core_Config::singleton()->uploadDir . self::CACHEFILE_NAME; } /**