mirror of
https://github.com/Piwigo/Piwigo.git
synced 2025-04-26 19:29:58 +03:00
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:
parent
82ecffad37
commit
7c9e4616c2
2 changed files with 11 additions and 3 deletions
|
@ -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,
|
||||
)
|
||||
);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue