Index: trunk/extensions/DonationInterface/payflowpro_gateway/payflowpro_gateway.php |
— | — | @@ -36,10 +36,10 @@ |
37 | 37 | $wgPayflowProUserID = ''; //if one or more users are set up, authorized user ID, else same as VENDOR |
38 | 38 | $wgPayflowProPassword = ''; //merchant login password |
39 | 39 | |
40 | | -$wgPayflowGatewayDBserver = $wgDBserver; |
41 | | -$wgPayflowGatewayDBname = $wgDBname; |
42 | | -$wgPayflowGatewayDBuser = $wgDBuser; |
43 | | -$wgPayflowGatewayDBpassword = $wgDBpassword; |
| 40 | +$wgPayflowGatewayDBserver =( !isset( $wgPayflowGatewayDBserver )) ? $wgDBserver : $wgPayflowGatewayDBserver; |
| 41 | +$wgPayflowGatewayDBname = ( !isset( $wgPayflowGatewayDBname )) ? $wgDBname : $wgPayflowGatewayDBname; |
| 42 | +$wgPayflowGatewayDBuser = ( !isset( $wgPayflowGatewayDBuser )) ? $wgDBuser : $wgPayflowGatewayDBuser; |
| 43 | +$wgPayflowGatewayDBpassword = ( !isset( $wgPayflowGatewayDBpassword )) ? $wgDBpassword : $wgPayflowGatewayDBpassword; |
44 | 44 | |
45 | 45 | function payflowGatewayConnection() { |
46 | 46 | global $wgPayflowGatewayDBserver, $wgPayflowGatewayDBname; |