mirror of
https://github.com/webmin/webmin.git
synced 2026-03-20 08:40:24 +00:00
Merge pull request #1453 from webmin/dev/no-list-blue-theme
Change: Dev/no list blue theme
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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=";
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user