Merge pull request #1453 from webmin/dev/no-list-blue-theme

Change: Dev/no list blue theme
This commit is contained in:
Jamie Cameron
2021-03-06 12:08:18 -08:00
committed by GitHub
4 changed files with 2 additions and 4 deletions

View File

@@ -211,7 +211,7 @@ if ($access{'cats'}) {
[ 0, $text{'default'} ] ]));
}
my @all = &webmin::list_themes();
my @all = &webmin::list_visible_themes();
my @themes = grep { !$_->{'overlay'} } @all;
my @overlays = grep { $_->{'overlay'} } @all;

View File

@@ -7,7 +7,7 @@ $access{'themes'} || &error($text{'acl_ecannot'});
&ReadParse();
&ui_print_header(undef, $text{'themes_title'}, "");
@themes = &list_themes();
@themes = &list_visible_themes();
&get_usermin_config(\%uconfig);
$prog = "edit_themes.cgi?mode=";

View File

@@ -181,7 +181,6 @@ my %done;
foreach my $theme (&list_themes()) {
my $iscurr = $curr && $theme->{'dir'} eq $curr;
next if (-l $root_directory."/".$theme->{'dir'} &&
$theme->{'dir'} =~ /\d+$/ &&
!$iscurr);
next if ($done{$theme->{'desc'}}++ && !$iscurr);
push(@rv, $theme);

View File

@@ -2752,7 +2752,6 @@ my %done;
foreach my $theme (&list_themes()) {
my $iscurr = $curr && $theme->{'dir'} eq $curr;
next if (-l $root_directory."/".$theme->{'dir'} &&
$theme->{'dir'} =~ /\d+$/ &&
!$iscurr);
next if ($done{$theme->{'desc'}}++ && !$iscurr);
push(@rv, $theme);