Skip to content

Commit

Permalink
Merge pull request #21358 from eileenmcnaughton/deprecated
Browse files Browse the repository at this point in the history
Remove deprecated function
  • Loading branch information
seamuslee001 authored Sep 3, 2021
2 parents f210a1b + 929f299 commit e448567
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions CRM/Contribute/BAO/ContributionRecur.php
Original file line number Diff line number Diff line change
Expand Up @@ -633,32 +633,6 @@ public static function validateRecurContribution($fields, $files, $self, &$error
}
}

/**
* Send start or end notification for recurring payments.
*
* @param array $ids
* @param CRM_Contribute_BAO_ContributionRecur $recur
* @param bool $isFirstOrLastRecurringPayment
*/
public static function sendRecurringStartOrEndNotification($ids, $recur, $isFirstOrLastRecurringPayment) {
CRM_Core_Error::deprecatedFunctionWarning('use CRM_Contribute_BAO_ContributionPage::recurringNotify');
if ($isFirstOrLastRecurringPayment) {
$autoRenewMembership = FALSE;
if ($recur->id &&
isset($ids['membership']) && $ids['membership']
) {
$autoRenewMembership = TRUE;
}

//send recurring Notification email for user
CRM_Contribute_BAO_ContributionPage::recurringNotify(
$ids['contribution'],
$isFirstOrLastRecurringPayment,
$recur
);
}
}

/**
* Copy custom data of the initial contribution into its recurring contributions.
*
Expand Down

0 comments on commit e448567

Please sign in to comment.