Bugzilla – Attachment 145996 Details for
Bug 32775
Ordering when there are multiple languages within a language group is wrong
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 32775: Do not order language directories based on when they were created
Bug-32775-Do-not-order-language-directories-based-.patch (text/plain), 903 bytes, created by
Martin Renvoize (ashimema)
on 2023-02-02 12:50:18 UTC
(
hide
)
Description:
Bug 32775: Do not order language directories based on when they were created
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2023-02-02 12:50:18 UTC
Size:
903 bytes
patch
obsolete
>From 0240dc19f7cacf3e114fd2d271f16d58b1814232 Mon Sep 17 00:00:00 2001 >From: Alex Buckley <alexbuckley@catalyst.net.nz> >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 <martin.renvoize@ptfs-europe.com> >--- > C4/Languages.pm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/C4/Languages.pm b/C4/Languages.pm >index c05c31bf9ef..9dcd3cf337b 100644 >--- a/C4/Languages.pm >+++ b/C4/Languages.pm >@@ -314,7 +314,7 @@ sub _get_language_dirs { > $theme //= ''; > my @lang_strings; > opendir D, "$htdocs/$theme"; >- for my $lang_string ( readdir D ) { >+ for my $lang_string ( sort readdir D ) { > next if $lang_string =~/^\./; > next if $lang_string eq 'all'; > next if $lang_string =~/png$/; >-- >2.39.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 32775
:
145918
|
145919
|
145983
|
145984
|
145996
|
145997
|
145998
|
146194
|
146195
|
146196
|
146569
|
146570
|
146571
|
146572
|
146573
|
146574
|
146575
|
146576
|
148392
|
148393
|
148394
|
148395
|
148396
|
148397