Skip to content

Commit

Permalink
10.9.8
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrii-fediuk committed May 16, 2024
1 parent 1705216 commit 74b0c2a
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions Directory/lib/country.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,10 @@ function df_country_codes_allowed($s = null):array {return df_csv_parse(df_cfg('
* @used-by \KingPalm\B2B\Observer\RegisterSuccess::execute()
* @param F|bool|mixed $onE [optional]
*/
function df_country_ctn(string $iso2, $onE = true):string {df_param_iso2($iso2, 0); return df_try(
function() use($iso2):string {return
dfa(df_countries_ctn(), strtoupper($iso2)) ?: df_error("Unable to find out the name of the country «{$iso2}».")
;}, $onE
);}
function df_country_ctn(string $c, $onE = true):string {return df_try(function() use($c):string {
df_param_iso2($c, 0);
return dfa(df_countries_ctn(), strtoupper($c)) ?: df_error("Unable to find out the name of the country «{$c}».");
}, $onE);}

/**
* 2018-04-13
Expand Down

0 comments on commit 74b0c2a

Please sign in to comment.