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 <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
This commit is contained in:
Paul POULAIN 2007-10-09 16:46:39 -05:00 committed by Joshua Ferraro
parent c0c11a87c1
commit 2d4cf61d9f
1 changed files with 1 additions and 1 deletions

View File

@ -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 =