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:
parent
c0c11a87c1
commit
2d4cf61d9f
|
|
@ -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 =
|
||||
|
|
|
|||
Loading…
Reference in New Issue