mirror of
https://github.com/webmin/webmin.git
synced 2026-02-03 14:13:29 +00:00
Show core modules first
This commit is contained in:
@@ -19,7 +19,8 @@ $re =~ s/\s+$//;
|
||||
|
||||
# Search module names first
|
||||
$count = 0;
|
||||
@mods = grep { !$_->{'clone'} } &get_available_module_infos();
|
||||
@mods = sort { $b->{'longdesc'} cmp $a->{'longdesc'} }
|
||||
grep { !$_->{'clone'} } &get_available_module_infos();
|
||||
foreach $m (@mods) {
|
||||
if ($m->{'desc'} =~ /\Q$re\E/i || $m->{'dir'} =~ /\Q$re\E/i) {
|
||||
&match_row(
|
||||
|
||||
Reference in New Issue
Block a user