
tomasz at svn
Nov 4, 2009, 3:01 PM
Post #1 of 1
(15 views)
Permalink
|
|
SVN: [58568] branches/wmf-deployment/extensions/ContributionTracking/ ContributionTracking_body.php
|
|
http://www.mediawiki.org/wiki/Special:Code/MediaWiki/58568 Revision: 58568 Author: tomasz Date: 2009-11-04 23:01:38 +0000 (Wed, 04 Nov 2009) Log Message: ----------- picking up 58325 Modified Paths: -------------- branches/wmf-deployment/extensions/ContributionTracking/ContributionTracking_body.php Modified: branches/wmf-deployment/extensions/ContributionTracking/ContributionTracking_body.php =================================================================== --- branches/wmf-deployment/extensions/ContributionTracking/ContributionTracking_body.php 2009-11-04 22:40:11 UTC (rev 58567) +++ branches/wmf-deployment/extensions/ContributionTracking/ContributionTracking_body.php 2009-11-04 23:01:38 UTC (rev 58568) @@ -19,8 +19,7 @@ $this->setHeaders(); $gateway = $wgRequest->getText( 'gateway' ); - if( !$wgRequest->wasPosted() || - !in_array( $gateway, array( 'paypal', 'moneybookers' ) ) ) { + if( !in_array( $gateway, array( 'paypal', 'moneybookers' ) ) ) { $wgOut->showErrorPage( 'contrib-tracking-error', 'contrib-tracking-error-text' ); return; } @@ -32,11 +31,11 @@ $tracked_contribution = array( 'note' => $wgRequest->getText('comment', NULL), 'referrer' => $wgRequest->getText('referrer', NULL), - 'anonymous' => ($wgRequest->getCheck('comment-option', 0) ? 0 : 1), + 'anonymous' => $wgRequest->getText('comment-option', 0), 'utm_source' => $wgRequest->getText('utm_source', NULL), 'utm_medium' => $wgRequest->getText('utm_medium', NULL), 'utm_campaign' => $wgRequest->getText('utm_campaign', NULL), - 'optout' => ($wgRequest->getCheck('email', 0) ? 0 : 1), + 'optout' => $wgRequest->getText('email', 0), 'language' => $wgRequest->getText('language', NULL), 'ts' => $ts, ); _______________________________________________ MediaWiki-CVS mailing list MediaWiki-CVS[at]lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs
|