mirror of
https://github.com/webmin/webmin.git
synced 2026-03-20 08:40:24 +00:00
Fix to display Legacy Theme if currently selected
This commit is contained in:
@@ -218,6 +218,7 @@ my @overlays = grep { $_->{'overlay'} } @all;
|
||||
if ($access{'theme'}) {
|
||||
# Current theme
|
||||
my @topts = ( );
|
||||
push(@topts, !$user{'theme'} ? [ '', $text{'edit_themedef'} ] : ());
|
||||
foreach my $t (@themes) {
|
||||
push(@topts, [ $t->{'dir'}, $t->{'desc'} ]);
|
||||
}
|
||||
|
||||
@@ -75,7 +75,7 @@ if ($access{'theme'}) {
|
||||
[ [ 1, &text('index_themeglobal', $tname)."<br>" ],
|
||||
[ 0, $text{'index_themeset'} ] ])." ".
|
||||
&ui_select("theme", $user->{'theme'},
|
||||
[ [ '', $text{'index_themedef'} ],
|
||||
[ !$user->{'theme'} ? [ '', $text{'index_themedef'} ] : (),
|
||||
map { [ $_->{'dir'}, $_->{'desc'} ] }
|
||||
@themes ]), undef, [ "valign=top","valign=top" ]);
|
||||
|
||||
|
||||
@@ -30,7 +30,8 @@ if (@themes) {
|
||||
print &ui_form_start("change_theme.cgi");
|
||||
print "<b>$text{'themes_sel'}</b>\n";
|
||||
print &ui_select("theme", $uconfig{'theme'},
|
||||
[ map { [ $_->{'dir'}, $_->{'desc'} ] } @themes ]),"<p>\n";
|
||||
[ !$uconfig{'theme'} ? [ '', $text{'themes_default'} ] : (),
|
||||
map { [ $_->{'dir'}, $_->{'desc'} ] } @themes ]),"<p>\n";
|
||||
print &ui_form_end([ [ undef, $text{'themes_change'} ] ]);
|
||||
print &ui_tabs_end_tab("mode", "change");
|
||||
}
|
||||
|
||||
@@ -37,7 +37,8 @@ if (@themes) {
|
||||
print &ui_form_start("change_theme.cgi");
|
||||
print "<b>$text{'themes_sel'}</b>\n";
|
||||
print &ui_select("theme", $gtheme,
|
||||
[ map { [ $_->{'dir'}, $_->{'desc'} ] } @themes ]),"<p>\n";
|
||||
[ !$gtheme ? [ '', $text{'themes_default'} ] : (),
|
||||
map { [ $_->{'dir'}, $_->{'desc'} ] } @themes ]),"<p>\n";
|
||||
print &ui_form_end([ [ undef, $text{'themes_change'} ] ]);
|
||||
print &ui_tabs_end_tab("mode", "change");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user