Index: trunk/extensions/DonationInterface/donate_interface/donate_interface.php |
— | — | @@ -106,7 +106,7 @@ |
107 | 107 | } |
108 | 108 | |
109 | 109 | //get payment method gateway value and name from each gateway and create menu of options |
110 | | - $values = ''; |
| 110 | + $values = array(); |
111 | 111 | wfRunHooks('DonationInterface_Value', array(&$values)); |
112 | 112 | |
113 | 113 | $gatewayMenu = ''; |
— | — | @@ -117,10 +117,12 @@ |
118 | 118 | |
119 | 119 | //get available currencies |
120 | 120 | |
| 121 | + $currencies = array( 'USD' => "USD: U.S. Dollar" ); |
| 122 | + //FIXME: It uses the currencies of the last gateway to be loaded. It should probably use the union of currencies, (currencies allowed by any gateway). |
121 | 123 | foreach($values as $key) { |
122 | 124 | if (isset($key['currencies'])) { |
123 | 125 | $currencies = $key['currencies']; |
124 | | - } else { $currencies = array( 'USD' => "USD: U.S. Dollar" ); } |
| 126 | + } |
125 | 127 | } |
126 | 128 | |
127 | 129 | $currencyMenu = ''; |