r58568 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r58567‎ | r58568 | r58569 >
Date:23:01, 4 November 2009
Author:tomasz
Status:ok
Tags:
Comment:
picking up 58325
Modified paths:
  • /branches/wmf-deployment/extensions/ContributionTracking/ContributionTracking_body.php (modified) (history)

Diff [purge]

Index: branches/wmf-deployment/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