Index: trunk/extensions/DonationInterface/payflowpro_gateway/payflowpro_gateway.body.php |
— | — | @@ -196,15 +196,15 @@ |
197 | 197 | * The message at the top of the form can be edited in the payflow_gateway.i18n.php file |
198 | 198 | */ |
199 | 199 | public function fnPayflowDisplayForm( &$data, &$error ) { |
200 | | - global $wgOut; |
| 200 | + global $wgOut, $wgRequest; |
201 | 201 | |
202 | 202 | // save contrib tracking id early to track abondonment |
203 | | - /*if ( $data[ 'numAttempt' ] == '0' ) { |
| 203 | + if ( $data[ 'numAttempt' ] == '0' && $wgRequest->getText( '_nocache_' ) == 'true' ) { |
204 | 204 | if ( !$tracked = $this->fnPayflowSaveContributionTracking( $data ) ) { |
205 | 205 | $when = time(); |
206 | 206 | wfDebugLog( 'payflowpro_gateway', 'Unable to save data to the contribution_tracking table ' . $when ); |
207 | 207 | } |
208 | | - }*/ |
| 208 | + } |
209 | 209 | |
210 | 210 | $form_class = $this->getFormClass(); |
211 | 211 | $form_obj = new $form_class( $data, $error ); |