Mwalker has submitted this change and it was merged.
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(-)
Approvals:
Mwalker: Looks good to me, approved
jenkins-bot: Verified
diff --git a/DonationInterfaceFormSettings.php
b/DonationInterfaceFormSettings.php
index e475d3e..b284a49 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: merged
Gerrit-Change-Id: I19e3fc18e64eaaa76fb649eb5c15a2c0553b0dda
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/core
Gerrit-Branch: fundraising/1.22
Gerrit-Owner: MarkTraceur <[email protected]>
Gerrit-Reviewer: Mwalker <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits