fixes #1295 do not hide inactive plugins right after an activation

So that you save a click (to show inactive plugins) after an update (which deactivate all plugins)
This commit is contained in:
plegall 2021-01-28 15:26:29 +01:00
parent 82ecffad37
commit 7c9e4616c2
2 changed files with 11 additions and 3 deletions

View file

@ -64,7 +64,14 @@ if (isset($_GET['action']) and isset($_GET['plugin']))
$template->delete_compiled_templates();
$persistent_cache->purge(true);
}
redirect($base_url);
$redirect_url = $base_url;
if ('activate' == $_GET['action'])
{
$redirect_url.= '&show_inactive';
}
redirect($redirect_url);
}
}
}
@ -208,6 +215,7 @@ $template->assign(
'PWG_TOKEN' => $pwg_token,
'base_url' => $base_url,
'show_details' => $show_details,
'max_inactive_before_hide' => isset($_GET['show_inactive']) ? 999 : 8,
)
);