r78143 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r78142‎ | r78143 | r78144 >
Date:21:41, 9 December 2010
Author:awjrichards
Status:deferred
Tags:
Comment:
Moving PayPal's item-name value to i18n file; Making item-name value different for one-time and recurring donations
Modified paths:
  • /trunk/extensions/ContributionTracking/ContributionTracking.i18n.php (modified) (history)
  • /trunk/extensions/ContributionTracking/ContributionTracking_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/ContributionTracking/ContributionTracking_body.php
@@ -111,7 +111,6 @@
112112
113113 // PayPal
114114 $repost['business'] = $wgContributionTrackingPayPalBusiness;
115 - $repost['item_name'] = 'One-time donation';
116115 $repost['item_number'] = 'DONATE';
117116 $repost['no_note'] = '0';
118117 $repost['return'] = $returnto;
@@ -132,9 +131,11 @@
133132 $repost[ 'cmd' ] = '_xclick-subscriptions';
134133 $amount_field_name = 'a3';
135134 $repost['notify_url'] = $wgContributionTrackingPayPalRecurringIPN;
 135+ $repost['item_name'] = $this->msgWiki( 'contrib-tracking-item-name-recurring' );
136136 } else {
137137 $repost['cmd'] = '_xclick';
138138 $repost['notify_url'] = $wgContributionTrackingPayPalIPN;
 139+ $repost['item_name'] = $this->msgWiki( 'contrib-tracking-item-name-onetime' );
139140 }
140141 }
141142 else if ( $gateway == 'moneybookers' ) {
Index: trunk/extensions/ContributionTracking/ContributionTracking.i18n.php
@@ -24,6 +24,9 @@
2525
2626 'contrib-tracking-button' => 'Continue',
2727
 28+ 'contrib-tracking-item-name-onetime' => 'One-time donation',
 29+ 'contrib-tracking-item-name-recurring' => 'Recurring monthly donation',
 30+
2831 );
2932
3033 /** Message documentation (Message documentation)

Status & tagging log