MarkTraceur has uploaded a new change for review.

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


Change subject: Fix bug if Adyen is disabled
......................................................................

Fix bug if Adyen is disabled

Missing variable definition, so only use it conditionally.

Change-Id: I19e3fc18e64eaaa76fb649eb5c15a2c0553b0dda
---
M DonationInterfaceFormSettings.php
1 file changed, 5 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/13/69513/1

diff --git a/DonationInterfaceFormSettings.php 
b/DonationInterfaceFormSettings.php
index e475d3e..47a8f13 100644
--- a/DonationInterfaceFormSettings.php
+++ b/DonationInterfaceFormSettings.php
@@ -9,9 +9,13 @@
        'gc' => $wgGlobalCollectGatewayHtmlFormDir,
        'paypal' => $wgPaypalGatewayHtmlFormDir,
 //     'pfp' => $wgPayflowProGatewayHtmlFormDir,
-       'adyen' => $wgAdyenGatewayHtmlFormDir,
 );
 
+// If it's not enabled we don't ever set this variable.
+if ( $wgDonationInterfaceEnableAdyen === true ) {
+       $form_dirs['adyen'] => $wgAdyenGatewayHtmlFormDir;
+}
+
 /**********
  * Amazon *
  **********/

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I19e3fc18e64eaaa76fb649eb5c15a2c0553b0dda
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: fundraising/1.22
Gerrit-Owner: MarkTraceur <[email protected]>

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

Reply via email to