diff options
author | Arthur <arthur@hoa.ro> | 2016-02-28 14:26:46 +0100 |
---|---|---|
committer | Arthur <arthur@hoa.ro> | 2016-02-28 14:26:46 +0100 |
commit | c6744a9e89b62ba94563c43ab33f964ec0b11a17 (patch) | |
tree | 30e6274a05636d06b10a5749d4786d5d95ccedf0 /application/LinkDB.php | |
parent | 10269bc8c9dfe87eb213c09a44308ce64ae0c12d (diff) | |
parent | c51fae92dc7d3080def81a2797e0d683b3e6d82a (diff) | |
download | Shaarli-c6744a9e89b62ba94563c43ab33f964ec0b11a17.tar.gz Shaarli-c6744a9e89b62ba94563c43ab33f964ec0b11a17.tar.zst Shaarli-c6744a9e89b62ba94563c43ab33f964ec0b11a17.zip |
Merge pull request #496 from ArthurHoaro/cross-search
Allow crossed search between terms and tags
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 | /** |