Skip to content

Commit

Permalink
Merge branch 'MDL-70459-master' of git://github.com/rezaies/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
snake committed Dec 22, 2020
2 parents b2382c7 + 22dfcb1 commit 814f60a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions enrol/fee/classes/plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ public function get_possible_currencies(): array {
$currencies[$c] = new lang_string($c, 'core_currencies');
}

uasort($currencies, function($a, $b) {
return strcmp($a, $b);
});

return $currencies;
}

Expand Down
2 changes: 1 addition & 1 deletion payment/classes/helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public static function get_supported_currencies(): array {
/** @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);
Expand Down

0 comments on commit 814f60a

Please sign in to comment.