X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=application%2FPageBuilder.php;h=3233d6b64562f78790f08513d8a519be1640e3e3;hb=c7721487b2459e6760cae9d6292b7d39c306d3d6;hp=468f144b873871136a1aa6c573994d34acf842ef;hpb=88d38cb290aad669ad1406e2362d85c81e46d4f6;p=github%2Fshaarli%2FShaarli.git diff --git a/application/PageBuilder.php b/application/PageBuilder.php index 468f144b..3233d6b6 100644 --- a/application/PageBuilder.php +++ b/application/PageBuilder.php @@ -83,7 +83,8 @@ class PageBuilder ApplicationUtils::getVersionHash(SHAARLI_VERSION, $this->conf->get('credentials.salt')) ); $this->tpl->assign('scripturl', index_url($_SERVER)); - $this->tpl->assign('privateonly', !empty($_SESSION['privateonly'])); // Show only private links? + $visibility = ! empty($_SESSION['visibility']) ? $_SESSION['visibility'] : ''; + $this->tpl->assign('visibility', $visibility); $this->tpl->assign('untaggedonly', !empty($_SESSION['untaggedonly'])); $this->tpl->assign('pagetitle', $this->conf->get('general.title', 'Shaarli')); if ($this->conf->exists('general.header_link')) {