diff options
author | ArthurHoaro <arthur@hoa.ro> | 2018-02-02 19:22:37 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-02 19:22:37 +0100 |
commit | bc3ce7ec2a652eec1441774958050cf83105560a (patch) | |
tree | add0bcb98c4051bde67badf202a3f5bcaeb850a3 /application/PageBuilder.php | |
parent | 17b4baedec3902a1549451ede36f914000019797 (diff) | |
parent | d2f6d909e529898c43b32defb890ec8e2d6b72f5 (diff) | |
download | Shaarli-bc3ce7ec2a652eec1441774958050cf83105560a.tar.gz Shaarli-bc3ce7ec2a652eec1441774958050cf83105560a.tar.zst Shaarli-bc3ce7ec2a652eec1441774958050cf83105560a.zip |
Merge pull request #1038 from ArthurHoaro/feature/public-only-filter
Add a filter to only display public links
Diffstat (limited to 'application/PageBuilder.php')
-rw-r--r-- | application/PageBuilder.php | 3 |
1 files changed, 2 insertions, 1 deletions
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 | |||
83 | ApplicationUtils::getVersionHash(SHAARLI_VERSION, $this->conf->get('credentials.salt')) | 83 | ApplicationUtils::getVersionHash(SHAARLI_VERSION, $this->conf->get('credentials.salt')) |
84 | ); | 84 | ); |
85 | $this->tpl->assign('scripturl', index_url($_SERVER)); | 85 | $this->tpl->assign('scripturl', index_url($_SERVER)); |
86 | $this->tpl->assign('privateonly', !empty($_SESSION['privateonly'])); // Show only private links? | 86 | $visibility = ! empty($_SESSION['visibility']) ? $_SESSION['visibility'] : ''; |
87 | $this->tpl->assign('visibility', $visibility); | ||
87 | $this->tpl->assign('untaggedonly', !empty($_SESSION['untaggedonly'])); | 88 | $this->tpl->assign('untaggedonly', !empty($_SESSION['untaggedonly'])); |
88 | $this->tpl->assign('pagetitle', $this->conf->get('general.title', 'Shaarli')); | 89 | $this->tpl->assign('pagetitle', $this->conf->get('general.title', 'Shaarli')); |
89 | if ($this->conf->exists('general.header_link')) { | 90 | if ($this->conf->exists('general.header_link')) { |