X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;ds=sidebyside;f=application%2FPageBuilder.php;h=50e3f1248d789436741341d80fb78211a728fccc;hb=29a837f347f53f751b723d466a2cd05fd92fd34e;hp=42932f32681a512f35de7c69ceb137c264f311b9;hpb=03542572665bae57705a2f57b0737ed43f4f1415;p=github%2Fshaarli%2FShaarli.git diff --git a/application/PageBuilder.php b/application/PageBuilder.php index 42932f32..50e3f124 100644 --- a/application/PageBuilder.php +++ b/application/PageBuilder.php @@ -1,5 +1,7 @@ tpl = false; $this->conf = $conf; + $this->linkDB = $linkDB; } /** @@ -75,12 +84,13 @@ class PageBuilder } $this->tpl->assign('shaarlititle', $this->conf->get('general.title', 'Shaarli')); $this->tpl->assign('openshaarli', $this->conf->get('security.open_shaarli', false)); - $this->tpl->assign('showatom', $this->conf->get('feed.show_atom', false)); + $this->tpl->assign('showatom', $this->conf->get('feed.show_atom', true)); + $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)); - if (!empty($GLOBALS['plugin_errors'])) { - $this->tpl->assign('plugin_errors', $GLOBALS['plugin_errors']); - } $this->tpl->assign('token', getToken($this->conf)); + if ($this->linkDB !== null) { + $this->tpl->assign('tags', $this->linkDB->allTags()); + } // To be removed with a proper theme configuration. $this->tpl->assign('conf', $this->conf); }