diff --git a/admin/plugins_installed.php b/admin/plugins_installed.php index 4a4332741..003d43490 100644 --- a/admin/plugins_installed.php +++ b/admin/plugins_installed.php @@ -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, ) ); diff --git a/admin/themes/default/template/plugins_installed.tpl b/admin/themes/default/template/plugins_installed.tpl index 187e9aac8..1487e9f75 100644 --- a/admin/themes/default/template/plugins_installed.tpl +++ b/admin/themes/default/template/plugins_installed.tpl @@ -243,7 +243,7 @@ jQuery(".pluginMiniBox").each(function(index){ {* PluginBoxes*} {/if} -
8}style="display:none"{/if}{/if}> +
$max_inactive_before_hide}style="display:none"{/if}{/if}> {assign var='field_name' value=$plugin.STATE}
@@ -332,7 +332,7 @@ jQuery(".pluginMiniBox").each(function(index){
{* PluginBoxes Container*}
{* PluginBoxes*} -
+
{assign var='badge_inactive' value='%s'|@sprintf:$count_types_plugins["inactive"]}
{'You have %s inactive plugins'|translate:$badge_inactive}