diff options
author | ArthurHoaro <arthur@hoa.ro> | 2017-01-17 09:55:25 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-17 09:55:25 +0100 |
commit | 89dcbe52775bac8d544448ff4f80b6256875de91 (patch) | |
tree | f45d41ea8d2d33a655a6b6c2017d28dfc98aa75b /index.php | |
parent | 679b6b40db1b654347e0b4785131796f7e3b8865 (diff) | |
parent | 7f96d9ec21a95cb85d0292b46e18235b20efbcb2 (diff) | |
download | Shaarli-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.php | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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. |