+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2015 |
+ | Copyright CiviCRM LLC (c) 2004-2016 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
/**
*
* @package CRM
- * @copyright CiviCRM LLC (c) 2004-2015
+ * @copyright CiviCRM LLC (c) 2004-2016
*/
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;
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;
}
/**