r58325 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r58324‎ | r58325 | r58326 >
Date:17:05, 29 October 2009
Author:diana
Status:ok
Tags:
Comment:
Minor changes to accommodate new gateway
Modified paths:
  • /trunk/extensions/ContributionTracking/ContributionTracking_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/ContributionTracking/ContributionTracking_body.php
@@ -19,8 +19,7 @@
2020 $this->setHeaders();
2121
2222 $gateway = $wgRequest->getText( 'gateway' );
23 - if( !$wgRequest->wasPosted() ||
24 - !in_array( $gateway, array( 'paypal', 'moneybookers' ) ) ) {
 23+ if( !in_array( $gateway, array( 'paypal', 'moneybookers' ) ) ) {
2524 $wgOut->showErrorPage( 'contrib-tracking-error', 'contrib-tracking-error-text' );
2625 return;
2726 }
@@ -32,11 +31,11 @@
3332 $tracked_contribution = array(
3433 'note' => $wgRequest->getText('comment', NULL),
3534 'referrer' => $wgRequest->getText('referrer', NULL),
36 - 'anonymous' => ($wgRequest->getCheck('comment-option', 0) ? 0 : 1),
 35+ 'anonymous' => $wgRequest->getText('comment-option', 0),
3736 'utm_source' => $wgRequest->getText('utm_source', NULL),
3837 'utm_medium' => $wgRequest->getText('utm_medium', NULL),
3938 'utm_campaign' => $wgRequest->getText('utm_campaign', NULL),
40 - 'optout' => ($wgRequest->getCheck('email', 0) ? 0 : 1),
 39+ 'optout' => $wgRequest->getText('email', 0),
4140 'language' => $wgRequest->getText('language', NULL),
4241 'ts' => $ts,
4342 );

Status & tagging log