Index: branches/wmf-deployment/extensions/ContributionTracking/ContributionTracking_body.php |
— | — | @@ -19,8 +19,7 @@ |
20 | 20 | $this->setHeaders(); |
21 | 21 | |
22 | 22 | $gateway = $wgRequest->getText( 'gateway' ); |
23 | | - if( !$wgRequest->wasPosted() || |
24 | | - !in_array( $gateway, array( 'paypal', 'moneybookers' ) ) ) { |
| 23 | + if( !in_array( $gateway, array( 'paypal', 'moneybookers' ) ) ) { |
25 | 24 | $wgOut->showErrorPage( 'contrib-tracking-error', 'contrib-tracking-error-text' ); |
26 | 25 | return; |
27 | 26 | } |
— | — | @@ -32,11 +31,11 @@ |
33 | 32 | $tracked_contribution = array( |
34 | 33 | 'note' => $wgRequest->getText('comment', NULL), |
35 | 34 | 'referrer' => $wgRequest->getText('referrer', NULL), |
36 | | - 'anonymous' => ($wgRequest->getCheck('comment-option', 0) ? 0 : 1), |
| 35 | + 'anonymous' => $wgRequest->getText('comment-option', 0), |
37 | 36 | 'utm_source' => $wgRequest->getText('utm_source', NULL), |
38 | 37 | 'utm_medium' => $wgRequest->getText('utm_medium', NULL), |
39 | 38 | 'utm_campaign' => $wgRequest->getText('utm_campaign', NULL), |
40 | | - 'optout' => ($wgRequest->getCheck('email', 0) ? 0 : 1), |
| 39 | + 'optout' => $wgRequest->getText('email', 0), |
41 | 40 | 'language' => $wgRequest->getText('language', NULL), |
42 | 41 | 'ts' => $ts, |
43 | 42 | ); |