Replaced deprecated CRM_Core_BAO_Setting call (see CRM-17507).
authorMattias Michaux <mattias.michaux@gmail.com>
Sat, 21 Nov 2015 19:15:44 +0000 (20:15 +0100)
committerMattias Michaux <mattias.michaux@gmail.com>
Sat, 21 Nov 2015 19:15:44 +0000 (20:15 +0100)
CRM/Event/Form/Search.php

index 2561955602374fda4ff875f69c0da010934ea94d..92b7aea6c22ddfe7814fc235068be9a71993e099 100644 (file)
@@ -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') . '<br />' . ts('(deleted contacts)'));
     }