Ejegg has uploaded a new change for review.
https://gerrit.wikimedia.org/r/202675
Change subject: Use curl_setopt_array instead of a loop
......................................................................
Use curl_setopt_array instead of a loop
'Cos shorter.
Change-Id: If37edcc3388bec942de99e5eb2e176aa7bc03320
---
M gateway_common/gateway.adapter.php
1 file changed, 1 insertion(+), 3 deletions(-)
git pull
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/DonationInterface
refs/changes/75/202675/1
diff --git a/gateway_common/gateway.adapter.php
b/gateway_common/gateway.adapter.php
index b2b6947..946b981 100644
--- a/gateway_common/gateway.adapter.php
+++ b/gateway_common/gateway.adapter.php
@@ -1423,9 +1423,7 @@
$curl_opts[CURLOPT_HTTPHEADER] = $headers;
$curl_opts[CURLOPT_POSTFIELDS] = $data;
- foreach ( $curl_opts as $option => $value ) {
- curl_setopt( $ch, $option, $value );
- }
+ curl_setopt_array( $ch, $curl_opts );
// As suggested in the PayPal developer forum sample code, try
more than once to get a
// response in case there is a general network issue
--
To view, visit https://gerrit.wikimedia.org/r/202675
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: If37edcc3388bec942de99e5eb2e176aa7bc03320
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/DonationInterface
Gerrit-Branch: master
Gerrit-Owner: Ejegg <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits