From b9c2ddc50a23581d2e7b291aeeb10b25945ef210 Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Wed, 24 Aug 2016 07:22:57 +1000 Subject: [PATCH] Convert to 4.6 version of getting settings --- CRM/Core/BAO/Cache.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Core/BAO/Cache.php b/CRM/Core/BAO/Cache.php index b295950417..6cc5f75002 100644 --- a/CRM/Core/BAO/Cache.php +++ b/CRM/Core/BAO/Cache.php @@ -305,7 +305,7 @@ class CRM_Core_BAO_Cache extends CRM_Core_DAO_Cache { */ public static function cleanup($session = FALSE, $table = FALSE, $prevNext = FALSE) { // first delete all sessions more than 20 minutes old which are related to any potential transaction - $timeIntervalMins = (int) Civi::settings()->get('secure_cache_timeout_minutes'); + $timeIntervalMins = CRM_Core_BAO_Setting::getItem(CRM_Core_BAO_Setting::SYSTEM_PREFERENCES_NAME('secure_cache_timeout_minutes')); if ($timeIntervalMins && $session) { $transactionPages = array( 'CRM_Contribute_Controller_Contribution', -- 2.25.1