Commit 814f60a4 authored by Jake Dallimore's avatar Jake Dallimore

Merge branch 'MDL-70459-master' of git://github.com/rezaies/moodle

parents b2382c7d 22dfcb10
......@@ -45,6 +45,10 @@ class enrol_fee_plugin extends enrol_plugin {
$currencies[$c] = new lang_string($c, 'core_currencies');
}
uasort($currencies, function($a, $b) {
return strcmp($a, $b);
});
return $currencies;
}
......
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment