diff options
author | ArthurHoaro <arthur@hoa.ro> | 2020-05-16 13:13:00 +0200 |
---|---|---|
committer | ArthurHoaro <arthur@hoa.ro> | 2020-07-23 21:19:21 +0200 |
commit | c79473bd84ab5aba7836d2caaf61847cabaf1e53 (patch) | |
tree | d4b730c015a91c1f390e4153c82cdf0395cf90af /index.php | |
parent | 72caf4e84c412ab6a4181b83a96dbef8ebb3c65a (diff) | |
download | Shaarli-c79473bd84ab5aba7836d2caaf61847cabaf1e53.tar.gz Shaarli-c79473bd84ab5aba7836d2caaf61847cabaf1e53.tar.zst Shaarli-c79473bd84ab5aba7836d2caaf61847cabaf1e53.zip |
Handle tag filtering in the Bookmark service
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 5 |
1 files changed, 0 insertions, 5 deletions
@@ -625,11 +625,6 @@ function renderPage($conf, $pluginManager, $bookmarkService, $history, $sessionM | |||
625 | $visibility = ! empty($_SESSION['visibility']) ? $_SESSION['visibility'] : ''; | 625 | $visibility = ! empty($_SESSION['visibility']) ? $_SESSION['visibility'] : ''; |
626 | $filteringTags = isset($_GET['searchtags']) ? explode(' ', $_GET['searchtags']) : []; | 626 | $filteringTags = isset($_GET['searchtags']) ? explode(' ', $_GET['searchtags']) : []; |
627 | $tags = $bookmarkService->bookmarksCountPerTag($filteringTags, $visibility); | 627 | $tags = $bookmarkService->bookmarksCountPerTag($filteringTags, $visibility); |
628 | foreach ($filteringTags as $tag) { | ||
629 | if (array_key_exists($tag, $tags)) { | ||
630 | unset($tags[$tag]); | ||
631 | } | ||
632 | } | ||
633 | 628 | ||
634 | if (! empty($_GET['sort']) && $_GET['sort'] === 'alpha') { | 629 | if (! empty($_GET['sort']) && $_GET['sort'] === 'alpha') { |
635 | alphabetical_sort($tags, false, true); | 630 | alphabetical_sort($tags, false, true); |