Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c537ed7
)
MDL-70459 core_payment: use array_merge to merge currencies
author
Shamim Rezaie
<shamim@moodle.com>
Sat, 12 Dec 2020 12:44:22 +0000
(23:44 +1100)
committer
Shamim Rezaie
<shamim@moodle.com>
Wed, 16 Dec 2020 11:30:52 +0000
(22:30 +1100)
payment/classes/helper.php
patch
|
blob
|
blame
|
history
diff --git
a/payment/classes/helper.php
b/payment/classes/helper.php
index
f0792b1
..
b5dc3c1
100644
(file)
--- a/
payment/classes/helper.php
+++ b/
payment/classes/helper.php
@@
-49,7
+49,7
@@
class helper {
/** @var \paygw_paypal\gateway $classname */
$classname = '\paygw_' . $plugin . '\gateway';
- $currencies
+= component_class_callback($classname, 'get_supported_currencies', [], []
);
+ $currencies
= array_merge($currencies, component_class_callback($classname, 'get_supported_currencies', [], [])
);
}
$currencies = array_unique($currencies);