aboutsummaryrefslogtreecommitdiffhomepage
path: root/index.php
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2020-05-16 13:13:00 +0200
committerArthurHoaro <arthur@hoa.ro>2020-07-23 21:19:21 +0200
commitc79473bd84ab5aba7836d2caaf61847cabaf1e53 (patch)
treed4b730c015a91c1f390e4153c82cdf0395cf90af /index.php
parent72caf4e84c412ab6a4181b83a96dbef8ebb3c65a (diff)
downloadShaarli-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.php5
1 files changed, 0 insertions, 5 deletions
diff --git a/index.php b/index.php
index 423a68f4..bf7090e3 100644
--- a/index.php
+++ b/index.php
@@ -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);