Show number of tags in metabox label

SPR-939
This commit is contained in:
Michael Große 2017-04-21 16:36:05 +02:00
commit 67d7dea5e8
No known key found for this signature in database
GPG key ID: 7E31028FBFEACC79

View file

@ -88,7 +88,7 @@ class Template {
* @return array * @return array
*/ */
public function getMetaBoxTabs() { public function getMetaBoxTabs() {
global $lang; global $lang, $INFO;
$tabs = array(); $tabs = array();
$toc = tpl_toc(true); $toc = tpl_toc(true);
@ -106,7 +106,7 @@ class Template {
'id' => 'spr__tab-tags', 'id' => 'spr__tab-tags',
'label' => tpl_getLang('tab_tags'), 'label' => tpl_getLang('tab_tags'),
'tab' => $this->plugins['tagging']->tpl_tags(false), 'tab' => $this->plugins['tagging']->tpl_tags(false),
'count' => null, // FIXME 'count' => count($this->plugins['tagging']->findItems(array('pid' => $INFO['id']), 'tag')),
); );
} }