diff --git a/index.php b/index.php index e3af45f10..67ada7be2 100644 --- a/index.php +++ b/index.php @@ -110,11 +110,9 @@ $template->assign('U_CANONICAL', $canonical_url); //-------------------------------------------------------------- page title $title = $page['title']; $template_title = $page['section_title']; -if (count($page['items']) > 0) -{ - $template_title.= ' ['.count($page['items']).']'; -} +$nb_items = count($page['items']); $template->assign('TITLE', $template_title); +$template->assign('NB_ITEMS', $nb_items); //-------------------------------------------------------------- menubar include( PHPWG_ROOT_PATH.'include/menubar.inc.php'); diff --git a/themes/default/template/index.tpl b/themes/default/template/index.tpl index 81802b16f..d1411d2f7 100644 --- a/themes/default/template/index.tpl +++ b/themes/default/template/index.tpl @@ -97,7 +97,7 @@ {if !empty($PLUGIN_INDEX_ACTIONS)}{$PLUGIN_INDEX_ACTIONS}{/if} -