X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=application%2FPageBuilder.php;h=c86621a254d4b3f262811e6d2a2588cac0ad7c2b;hb=ce6bdab3a02f3a30a656df78b43777b23b70afec;hp=b133dee83644794f7617726a79e1d087f373f825;hpb=c4c655d9bfe68a914898d76bb9c479eea1b04f72;p=github%2Fshaarli%2FShaarli.git diff --git a/application/PageBuilder.php b/application/PageBuilder.php index b133dee8..c86621a2 100644 --- a/application/PageBuilder.php +++ b/application/PageBuilder.php @@ -1,5 +1,7 @@ tpl = false; $this->conf = $conf; + $this->linkDB = $linkDB; } /** @@ -79,6 +88,9 @@ class PageBuilder $this->tpl->assign('feed_type', $this->conf->get('feed.show_atom', true) !== false ? 'atom' : 'rss'); $this->tpl->assign('hide_timestamps', $this->conf->get('privacy.hide_timestamps', false)); $this->tpl->assign('token', getToken($this->conf)); + if ($this->linkDB !== null) { + $this->tpl->assign('tags', $this->linkDB->linksCountPerTag()); + } // To be removed with a proper theme configuration. $this->tpl->assign('conf', $this->conf); }