aboutsummaryrefslogtreecommitdiffhomepage
path: root/index.php
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2017-01-17 09:55:25 +0100
committerGitHub <noreply@github.com>2017-01-17 09:55:25 +0100
commit89dcbe52775bac8d544448ff4f80b6256875de91 (patch)
treef45d41ea8d2d33a655a6b6c2017d28dfc98aa75b /index.php
parent679b6b40db1b654347e0b4785131796f7e3b8865 (diff)
parent7f96d9ec21a95cb85d0292b46e18235b20efbcb2 (diff)
downloadShaarli-89dcbe52775bac8d544448ff4f80b6256875de91.tar.gz
Shaarli-89dcbe52775bac8d544448ff4f80b6256875de91.tar.zst
Shaarli-89dcbe52775bac8d544448ff4f80b6256875de91.zip
Merge pull request #768 from ArthurHoaro/feature/get-public-links
Update LinkFilter to be able to filter only public links
Diffstat (limited to 'index.php')
-rw-r--r--index.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/index.php b/index.php
index 190d7f6b..b62149f6 100644
--- a/index.php
+++ b/index.php
@@ -1614,8 +1614,8 @@ function buildLinkList($PAGE,$LINKSDB, $conf, $pluginManager)
1614 } 1614 }
1615 } else { 1615 } else {
1616 // Filter links according search parameters. 1616 // Filter links according search parameters.
1617 $privateonly = !empty($_SESSION['privateonly']); 1617 $visibility = ! empty($_SESSION['privateonly']) ? 'private' : 'all';
1618 $linksToDisplay = $LINKSDB->filterSearch($_GET, false, $privateonly); 1618 $linksToDisplay = $LINKSDB->filterSearch($_GET, false, $visibility);
1619 } 1619 }
1620 1620
1621 // ---- Handle paging. 1621 // ---- Handle paging.