diff options
author | ArthurHoaro <arthur@hoa.ro> | 2017-01-16 13:57:11 +0100 |
---|---|---|
committer | ArthurHoaro <arthur@hoa.ro> | 2017-01-16 13:57:11 +0100 |
commit | 7f96d9ec21a95cb85d0292b46e18235b20efbcb2 (patch) | |
tree | 7fbedb066b3eef2d3951935806069b2236effb83 /index.php | |
parent | ae7f6b9d09c0f3e31d64e6c8a9804d5ab0c62eae (diff) | |
download | Shaarli-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.php | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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. |