Sorting the install directory
authorPaul POULAIN <paul@koha-fr.org>
Tue, 9 Oct 2007 21:46:39 +0000 (16:46 -0500)
committerJoshua Ferraro <jmf@liblime.com>
Wed, 10 Oct 2007 00:04:20 +0000 (19:04 -0500)
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 <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
installer/install.pl

index f8a687a..1afe245 100755 (executable)
@@ -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 =