From 5716ece537eae6acf530927a5c15a052f964b82e Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Wed, 27 Jan 2016 15:14:48 -0800 Subject: [PATCH] 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. --- CRM/Utils/VersionCheck.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } /** -- 2.25.1