From c51fae92dc7d3080def81a2797e0d683b3e6d82a Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Tue, 23 Feb 2016 19:21:14 +0100 Subject: Allow crossed search between terms and tags * Partial fix of #449 * Current use case: search term + click on tag. * LinkFilter now returns all links if no filter is given. * Unit tests. --- application/LinkDB.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'application/LinkDB.php') diff --git a/application/LinkDB.php b/application/LinkDB.php index 9488ac45..1b505620 100644 --- a/application/LinkDB.php +++ b/application/LinkDB.php @@ -353,8 +353,7 @@ You use the community supported version of the original Shaarli project, by Seba public function filter($type = '', $request = '', $casesensitive = false, $privateonly = false) { $linkFilter = new LinkFilter($this->_links); - $requestFilter = is_array($request) ? implode(' ', $request) : $request; - return $linkFilter->filter($type, trim($requestFilter), $casesensitive, $privateonly); + return $linkFilter->filter($type, $request, $casesensitive, $privateonly); } /** -- cgit v1.2.3