Show security tab if it was selected before

This commit is contained in:
Jamie Cameron
2021-11-09 18:57:55 -08:00
parent cdde4ef96d
commit b118a05209

View File

@@ -25,7 +25,7 @@ $in{'mode'} ||= 'updates';
# Show mode selector (all, updates only, updates and new)
@grid = ( );
foreach $m ('current', 'updates', 'new',
$sec ? ( 'security' ) : ( )) {
$sec || $in{'mode'} eq 'security' ? ( 'security' ) : ( )) {
$mmsg = $text{'index_mode_'.$m};
if ($in{'mode'} eq $m) {
push(@mlinks, "<b>$mmsg</b>");