Merge branch 'MDL-70459-311' of git://github.com/rezaies/moodle into MOODLE_311_STABLE

This commit is contained in:
Jake Dallimore
2020-12-22 16:51:15 +08:00
2 changed files with 5 additions and 1 deletions
+4
View File
@@ -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;
}
+1 -1
View File
@@ -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);