r74757 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r74756‎ | r74757 | r74758 >
Date:00:52, 14 October 2010
Author:awjrichards
Status:deferred
Tags:
Comment:
Enabled legacy contribution_tracking insert on initial form load IF _nocache_=true
Modified paths:
  • /trunk/extensions/DonationInterface/payflowpro_gateway/payflowpro_gateway.body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/DonationInterface/payflowpro_gateway/payflowpro_gateway.body.php
@@ -196,15 +196,15 @@
197197 * The message at the top of the form can be edited in the payflow_gateway.i18n.php file
198198 */
199199 public function fnPayflowDisplayForm( &$data, &$error ) {
200 - global $wgOut;
 200+ global $wgOut, $wgRequest;
201201
202202 // save contrib tracking id early to track abondonment
203 - /*if ( $data[ 'numAttempt' ] == '0' ) {
 203+ if ( $data[ 'numAttempt' ] == '0' && $wgRequest->getText( '_nocache_' ) == 'true' ) {
204204 if ( !$tracked = $this->fnPayflowSaveContributionTracking( $data ) ) {
205205 $when = time();
206206 wfDebugLog( 'payflowpro_gateway', 'Unable to save data to the contribution_tracking table ' . $when );
207207 }
208 - }*/
 208+ }
209209
210210 $form_class = $this->getFormClass();
211211 $form_obj = new $form_class( $data, $error );

Status & tagging log