From 3d554b59c4c971ebe1b0b508279d893309c7f3b3 Mon Sep 17 00:00:00 2001 From: "Matthew Wire (MJW Consulting)" Date: Wed, 9 Jan 2019 15:27:17 +0000 Subject: [PATCH] Remove redundant function --- CRM/Member/Page/RecurringContributions.php | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/CRM/Member/Page/RecurringContributions.php b/CRM/Member/Page/RecurringContributions.php index 67b2b93938..7567aa3694 100644 --- a/CRM/Member/Page/RecurringContributions.php +++ b/CRM/Member/Page/RecurringContributions.php @@ -111,7 +111,7 @@ class CRM_Member_Page_RecurringContributions extends CRM_Core_Page { * @param array $recurringContribution */ private function setActionsForRecurringContribution($recurID, &$recurringContribution) { - $action = array_sum(array_keys($this->recurLinks($recurID))); + $action = array_sum(array_keys(CRM_Contribute_Page_Tab::recurLinks($recurID, 'contribution'))); // no action allowed if it's not active $recurringContribution['is_active'] = ($recurringContribution['contribution_status_id'] != 3); @@ -125,7 +125,7 @@ class CRM_Member_Page_RecurringContributions extends CRM_Core_Page { } $recurringContribution['action'] = CRM_Core_Action::formLink( - $this->recurLinks($recurID), + CRM_Contribute_Page_Tab::recurLinks($recurID, 'contribution'), $action, array( 'cid' => $this->contactID, @@ -141,19 +141,4 @@ class CRM_Member_Page_RecurringContributions extends CRM_Core_Page { } } - /** - * This method returns the links that are given for recur search row. - * currently the links added for each row are: - * - View - * - Edit - * - Cancel - * - * @param bool $id - * - * @return array - */ - private function recurLinks($id) { - return CRM_Contribute_Page_Tab::recurLinks($id, 'contribution'); - } - } -- 2.25.1