"Khorn (WMF)" posted a comment on Wikimedia.r1338.
URL: http://www.mediawiki.org/wiki/Special:Code/Wikimedia/1338#c31183
Commit summary for Wikimedia.r1338:
Added _civicrm_recurring_globalcollect_get_payment_by_id(),
_civicrm_recurring_globalcollect_get_next_sched_contribution_date(). Updated
documentation.
Khorn (WMF)'s comment:
<pre>
// Keep incrementing the date until a future time is found.
if ( date('Y-m-d', $now_stamp) == date('Y-m-d', $scheduled_date_stamp) ) {
$record['next_sched_contribution'] = date('Y-m-d H:i:s',
$scheduled_date_stamp);
return
_civicrm_recurring_globalcollect_get_next_sched_contribution_date($record,
$data);
}
elseif ($now_stamp > $scheduled_date_stamp) {
$record['next_sched_contribution'] = date('Y-m-d H:i:s',
$scheduled_date_stamp);
return
_civicrm_recurring_globalcollect_get_next_sched_contribution_date($record,
$data);
}
</pre>
Both cases in that if statement appear to execute the same code.
_______________________________________________
MediaWiki-CodeReview mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-codereview