1
0

fixed addnew plugin count

This commit is contained in:
Ian
2013-01-04 18:41:15 +01:00
parent 166a811104
commit 7e061d8c8c
2 changed files with 2 additions and 2 deletions

View File

@ -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') {

View File

@ -41,8 +41,7 @@
{$config}
</form>
{elseif $adminAction == 'addnew'}
{* BUG: $pluginstack always is 0 in 2.0? *}
<h2>{if $type == 'event'}{$CONST.EVENT_PLUGINS}{else}{$CONST.SIDEBAR_PLUGINS}{/if} <span class="plugins_available">{$CONST.PLUGIN_AVAILABLE_COUNT|sprintf:"count({$pluginstack})"}</span></h2>
<h2>{if $type == 'event'}{$CONST.EVENT_PLUGINS}{else}{$CONST.SIDEBAR_PLUGINS}{/if} <span class="plugins_available">{$CONST.PLUGIN_AVAILABLE_COUNT|sprintf:$count_pluginstack}</span></h2>
{foreach $errorstack as $e_idx => $e_name}
<span class="msg_error"><span class="icon-attention"></span> {$CONST.ERROR}: {$e_name}</span>
{/foreach}