Mwalker has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/73385


Change subject: Ok; Don't Sub Currencies...
......................................................................

Ok; Don't Sub Currencies...

When we substitute currencies; the paypal adapter which can handle
unhandled currencies gets left out in the cold! So...

Change-Id: I58ab96abd6b4a3d2118ab432acccfd9bac2a6b66
---
M special/GatewayFormChooser.php
1 file changed, 2 insertions(+), 2 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/DonationInterface 
refs/changes/85/73385/1

diff --git a/special/GatewayFormChooser.php b/special/GatewayFormChooser.php
index 377c5ee..735a888 100644
--- a/special/GatewayFormChooser.php
+++ b/special/GatewayFormChooser.php
@@ -143,11 +143,11 @@
                        }
 
                        // Filter on currency; and if it's too generic we add 
what the adapter thinks it can support
-                       if ( $meta['currencies'] === 'ALL' ) {
+                       /*if ( $meta['currencies'] === 'ALL' ) {
                                $meta['currencies'] = array( '+' => 
$adapterName::getCurrencies() );
                        } elseif( array_key_exists( '-', $meta['currencies'] ) 
&& !array_key_exists( '+', $meta['currencies'] ) ) {
                                $meta['currencies']['+'] = 
$adapterName::getCurrencies();
-                       }
+                       }*/
 
                        if ( !is_null( $currency ) && 
!DataValidator::value_appears_in( $currency, $meta['currencies'] )
                        ) {

-- 
To view, visit https://gerrit.wikimedia.org/r/73385
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I58ab96abd6b4a3d2118ab432acccfd9bac2a6b66
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/DonationInterface
Gerrit-Branch: deploy-payments_1.22
Gerrit-Owner: Mwalker <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to