From 9821f0c51c7534b61275ca3e08bb83536c675b31 Mon Sep 17 00:00:00 2001 From: Mattias Michaux Date: Sat, 21 Nov 2015 20:15:44 +0100 Subject: [PATCH] Replaced deprecated CRM_Core_BAO_Setting call (see CRM-17507). --- CRM/Event/Form/Search.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Event/Form/Search.php b/CRM/Event/Form/Search.php index 2561955602..92b7aea6c2 100644 --- a/CRM/Event/Form/Search.php +++ b/CRM/Event/Form/Search.php @@ -170,7 +170,7 @@ class CRM_Event_Form_Search extends CRM_Core_Form_Search { parent::buildQuickForm(); $this->addSortNameField(); - if (CRM_Core_Permission::check('access deleted contacts') and CRM_Core_BAO_Setting::getItem(CRM_Core_BAO_Setting::SYSTEM_PREFERENCES_NAME, 'contact_undelete', NULL)) { + if (CRM_Core_Permission::check('access deleted contacts') and Civi::settings()->get('contact_undelete')) { $this->addElement('checkbox', 'deleted_contacts', ts('Search in Trash') . '
' . ts('(deleted contacts)')); } -- 2.25.1