diff options
author | ArthurHoaro <arthur@hoa.ro> | 2016-02-23 19:21:14 +0100 |
---|---|---|
committer | ArthurHoaro <arthur@hoa.ro> | 2016-02-28 14:17:40 +0100 |
commit | c51fae92dc7d3080def81a2797e0d683b3e6d82a (patch) | |
tree | 394f9419589c1983d9be9834b89c8be2e8ef237c /application/LinkDB.php | |
parent | 6c3d6a31f413862941fe514e7167c04fe71ba1a7 (diff) | |
download | Shaarli-c51fae92dc7d3080def81a2797e0d683b3e6d82a.tar.gz Shaarli-c51fae92dc7d3080def81a2797e0d683b3e6d82a.tar.zst Shaarli-c51fae92dc7d3080def81a2797e0d683b3e6d82a.zip |
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.
Diffstat (limited to 'application/LinkDB.php')
-rw-r--r-- | application/LinkDB.php | 3 |
1 files changed, 1 insertions, 2 deletions
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 | |||
353 | public function filter($type = '', $request = '', $casesensitive = false, $privateonly = false) | 353 | public function filter($type = '', $request = '', $casesensitive = false, $privateonly = false) |
354 | { | 354 | { |
355 | $linkFilter = new LinkFilter($this->_links); | 355 | $linkFilter = new LinkFilter($this->_links); |
356 | $requestFilter = is_array($request) ? implode(' ', $request) : $request; | 356 | return $linkFilter->filter($type, $request, $casesensitive, $privateonly); |
357 | return $linkFilter->filter($type, trim($requestFilter), $casesensitive, $privateonly); | ||
358 | } | 357 | } |
359 | 358 | ||
360 | /** | 359 | /** |