From 2d4cf61d9f7979a6aed65c0953c787c6f5ebf38e Mon Sep 17 00:00:00 2001 From: Paul POULAIN Date: Tue, 9 Oct 2007 16:46:39 -0500 Subject: [PATCH] Sorting the install directory previously, the order was "random". With this patch, you can choose the order of the file that are shown for adding during install. Just name the directories: for example 1-Mandatory, 2-Optional, 3-whateveryouwant Signed-off-by: Chris Cormack Signed-off-by: Joshua Ferraro --- installer/install.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/installer/install.pl b/installer/install.pl index f8a687a084..1afe245651 100755 --- a/installer/install.pl +++ b/installer/install.pl @@ -392,7 +392,7 @@ elsif ( $step && $step == 3 ) { $dir = C4::Context->config('intranetdir') . "/installer/data/$langchoice"; opendir( MYDIR, $dir ) || warn "no open $dir"; - @listdir = grep { !/^\.|CVS/ && -d "$dir/$_" } readdir(MYDIR); + @listdir = sort grep { !/^\.|CVS/ && -d "$dir/$_" } readdir(MYDIR); closedir MYDIR; my @levellist; my $request = -- 2.39.5