Skip to content

Commit

Permalink
Locale fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ardiakov committed Oct 21, 2019
1 parent 6ec3640 commit db92647
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Locale.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,9 @@ public static function getFallback($locale): ?string

array_pop($localeSubTags);

return locale_compose($localeSubTags);
$fallback = locale_compose($localeSubTags);

return false !== $fallback ? $fallback : null;
}

if (false !== $pos = strrpos($locale, '_')) {
Expand Down

0 comments on commit db92647

Please sign in to comment.