File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -107,11 +107,18 @@ function currencies()
107107 foreach ($countries->currencies()->sortBy('name')->toArray() as $currencyCode => $currency) {
108108 $items[$currencyCode] = $currency['name'].(' ('.$currencyCode.')');
109109 }*/
110-
111- foreach (CurrencyLoader::currencies (true ) as $ currency ) {
112- $ items [$ currency ['iso_4217_code ' ]] = $ currency ['iso_4217_name ' ].(' ( ' .$ currency ['iso_4217_code ' ].') ' );
110+
111+ // Allow for typo in package
112+ if (method_exists ('CurrencyLoader ' , 'curriencies ' )) {
113+ foreach (CurrencyLoader::curriencies (true ) as $ currency ) {
114+ $ items [$ currency ['iso_4217_code ' ]] = $ currency ['iso_4217_name ' ].(' ( ' .$ currency ['iso_4217_code ' ].') ' );
115+ }
116+ } else {
117+ foreach (CurrencyLoader::currencies (true ) as $ currency ) {
118+ $ items [$ currency ['iso_4217_code ' ]] = $ currency ['iso_4217_name ' ].(' ( ' .$ currency ['iso_4217_code ' ].') ' );
119+ }
113120 }
114-
121+
115122 return $ items ;
116123}
117124
You can’t perform that action at this time.
0 commit comments