From 67d7dea5e821b568784466b5f8dd51586f0ef9f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Gro=C3=9Fe?= Date: Fri, 21 Apr 2017 16:36:05 +0200 Subject: [PATCH] Show number of tags in metabox label SPR-939 --- Template.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Template.php b/Template.php index df7ef52..b2924d9 100644 --- a/Template.php +++ b/Template.php @@ -88,7 +88,7 @@ class Template { * @return array */ public function getMetaBoxTabs() { - global $lang; + global $lang, $INFO; $tabs = array(); $toc = tpl_toc(true); @@ -106,7 +106,7 @@ class Template { 'id' => 'spr__tab-tags', 'label' => tpl_getLang('tab_tags'), 'tab' => $this->plugins['tagging']->tpl_tags(false), - 'count' => null, // FIXME + 'count' => count($this->plugins['tagging']->findItems(array('pid' => $INFO['id']), 'tag')), ); }