aboutsummaryrefslogtreecommitdiffhomepage
path: root/index.php
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2017-01-16 13:57:11 +0100
committerArthurHoaro <arthur@hoa.ro>2017-01-16 13:57:11 +0100
commit7f96d9ec21a95cb85d0292b46e18235b20efbcb2 (patch)
tree7fbedb066b3eef2d3951935806069b2236effb83 /index.php
parentae7f6b9d09c0f3e31d64e6c8a9804d5ab0c62eae (diff)
downloadShaarli-7f96d9ec21a95cb85d0292b46e18235b20efbcb2.tar.gz
Shaarli-7f96d9ec21a95cb85d0292b46e18235b20efbcb2.tar.zst
Shaarli-7f96d9ec21a95cb85d0292b46e18235b20efbcb2.zip
Update LinkFilter to be able to filter only public links
No update regarding the UI or the API for now Fixes #758
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 145ea3f6..4f07a013 100644
--- a/index.php
+++ b/index.php
@@ -1630,8 +1630,8 @@ function buildLinkList($PAGE,$LINKSDB, $conf, $pluginManager)
1630 } 1630 }
1631 } else { 1631 } else {
1632 // Filter links according search parameters. 1632 // Filter links according search parameters.
1633 $privateonly = !empty($_SESSION['privateonly']); 1633 $visibility = ! empty($_SESSION['privateonly']) ? 'private' : 'all';
1634 $linksToDisplay = $LINKSDB->filterSearch($_GET, false, $privateonly); 1634 $linksToDisplay = $LINKSDB->filterSearch($_GET, false, $visibility);
1635 } 1635 }
1636 1636
1637 // ---- Handle paging. 1637 // ---- Handle paging.