mirror of
https://github.com/webmin/webmin.git
synced 2026-02-03 14:13:29 +00:00
Fix to allow some hidden modules to be searchable
Like Virtualmin Virtual Servers, which has a separate switch in the menu, so we don't want it to show up as a regular link in the menu as well
This commit is contained in:
@@ -40,8 +40,8 @@ else {
|
||||
# All reasonable modules
|
||||
@mods = &get_available_module_infos();
|
||||
}
|
||||
@mods = grep { !$_->{'clone'} && !$_->{'hidden'} }
|
||||
grep { !$_->{'noui'} && !$_->{$pn.'_noui'} } @mods;
|
||||
@mods = grep { !($_->{clone} || $_->{noui} || ($pn && $_->{"${pn}_noui"})) &&
|
||||
(($_->{hidden} // 0) != 1) } @mods;
|
||||
@mods = sort { $b->{'longdesc'} cmp $a->{'longdesc'} } @mods;
|
||||
foreach my $m (@mods) {
|
||||
if ($m->{'desc'} =~ /\Q$re\E/i) {
|
||||
|
||||
Reference in New Issue
Block a user