From 1050d25c973be9e2ff825c5122b173e6700bc7b1 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Thu, 2 Jan 2014 19:26:06 -0800 Subject: [PATCH] BAO_Contact - Fix use of in static fn --- CRM/Contact/BAO/Contact.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/CRM/Contact/BAO/Contact.php b/CRM/Contact/BAO/Contact.php index 303579aa48..8cd54c89ab 100644 --- a/CRM/Contact/BAO/Contact.php +++ b/CRM/Contact/BAO/Contact.php @@ -965,13 +965,13 @@ WHERE id={$id}; "; */ public static function processImage() { - $action = CRM_Utils_Request::retrieve('action', 'String', $this); - $cid = CRM_Utils_Request::retrieve('cid', 'Positive', $this); + $action = CRM_Utils_Request::retrieve('action', 'String'); + $cid = CRM_Utils_Request::retrieve('cid', 'Positive'); // retrieve contact id in case of Profile context - $id = CRM_Utils_Request::retrieve('id', 'Positive', $this); + $id = CRM_Utils_Request::retrieve('id', 'Positive'); $cid = $cid ? $cid : $id; if ($action & CRM_Core_Action::DELETE) { - if (CRM_Utils_Request::retrieve('confirmed', 'Boolean', $this)) { + if (CRM_Utils_Request::retrieve('confirmed', 'Boolean')) { CRM_Contact_BAO_Contact::deleteContactImage($cid); CRM_Core_Session::setStatus(ts('Contact image deleted successfully'), ts('Image Deleted'), 'success'); $session = CRM_Core_Session::singleton(); -- 2.25.1