Merge branch 'showTagCount' into 'master'

Show number of tags in metabox label

See merge request !50
This commit is contained in:
Jana Deutschländer 2017-04-24 11:41:48 +02:00
commit f0798ec8f1

View file

@ -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')),
);
}