diff --git a/include/admin/plugins.inc.php b/include/admin/plugins.inc.php index d2e38031..d8a2a07e 100644 --- a/include/admin/plugins.inc.php +++ b/include/admin/plugins.inc.php @@ -243,6 +243,7 @@ if (isset($_GET['serendipity']['plugin_to_conf'])) { } ksort($pluggroups); + $data['count_pluginstack'] = count($pluginstack); $data['errorstack'] = $errorstack; if ($serendipity['GET']['only_group'] == 'UPGRADE') { diff --git a/include/admin/tpl/plugins.inc.tpl b/include/admin/tpl/plugins.inc.tpl index f63865f5..9844cbbe 100644 --- a/include/admin/tpl/plugins.inc.tpl +++ b/include/admin/tpl/plugins.inc.tpl @@ -41,8 +41,7 @@ {$config} {elseif $adminAction == 'addnew'} - {* BUG: $pluginstack always is 0 in 2.0? *} -

{if $type == 'event'}{$CONST.EVENT_PLUGINS}{else}{$CONST.SIDEBAR_PLUGINS}{/if} {$CONST.PLUGIN_AVAILABLE_COUNT|sprintf:"count({$pluginstack})"}

+

{if $type == 'event'}{$CONST.EVENT_PLUGINS}{else}{$CONST.SIDEBAR_PLUGINS}{/if} {$CONST.PLUGIN_AVAILABLE_COUNT|sprintf:$count_pluginstack}

{foreach $errorstack as $e_idx => $e_name} {$CONST.ERROR}: {$e_name} {/foreach}