mirror of
https://github.com/webmin/webmin.git
synced 2026-08-13 19:10:34 +01:00
Fix to test if locale is supported
This commit is contained in:
@@ -12913,7 +12913,9 @@ eval {
|
||||
if (!$@ && $locale_system) {
|
||||
$locale_system =~ s/\..*//;
|
||||
$locale_system =~ s/_/-/;
|
||||
return $locale_system;
|
||||
my $locales = &list_locales();
|
||||
return $locale_system
|
||||
if ($locales->{$locale_system});
|
||||
}
|
||||
return $locale_def;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user