From 565e150d1c272d0987878ae4de49eb6580d97c80 Mon Sep 17 00:00:00 2001 From: Alex Buckley Date: Wed, 1 Feb 2023 14:41:22 +1300 Subject: [PATCH] Bug 32775: Do not order language directories based on when they were created Sponsored-by: Kinder library, New Zealand Signed-off-by: Martin Renvoize Signed-off-by: Katrin Fischer Signed-off-by: Fridolin Somers Signed-off-by: Tomas Cohen Arazi --- C4/Languages.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Languages.pm b/C4/Languages.pm index 1d45bd2d71..d5fab8103a 100644 --- a/C4/Languages.pm +++ b/C4/Languages.pm @@ -318,7 +318,7 @@ sub _get_language_dirs { my @lang_strings; my $dir_h; opendir $dir_h, "$htdocs/$theme"; - for my $lang_string ( readdir $dir_h ) { + for my $lang_string ( sort readdir $dir_h ) { next if $lang_string =~/^\./; next if $lang_string eq 'all'; next if $lang_string =~/png$/; -- 2.39.5