aboutsummaryrefslogtreecommitdiffhomepage
path: root/application/LinkDB.php
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2016-01-20 23:34:33 +0100
committerArthurHoaro <arthur@hoa.ro>2016-02-15 20:40:39 +0100
commit21979ff11ceee0042642ac17147858a4155d54c5 (patch)
tree9527f3dbb2a23e0b42a2f9ce4cc7d4c7580da455 /application/LinkDB.php
parent6e607ca613b47e17f7516e94adfee930d4f3e1e8 (diff)
downloadShaarli-21979ff11ceee0042642ac17147858a4155d54c5.tar.gz
Shaarli-21979ff11ceee0042642ac17147858a4155d54c5.tar.zst
Shaarli-21979ff11ceee0042642ac17147858a4155d54c5.zip
Add exclusion in tag search
* Searching '-mytag' will now exlude all shaares with 'mytag' tag. * All tags starting with a '-' are renamed without it (through the Updater). * Unit tests. Minor code changes: * LinkDB->filter() can now take no parameters (get all link depending on logged status). * tagsStrToArray() is now static and filters blank tags.
Diffstat (limited to 'application/LinkDB.php')
-rw-r--r--application/LinkDB.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/application/LinkDB.php b/application/LinkDB.php
index a95b3f36..416aa0d3 100644
--- a/application/LinkDB.php
+++ b/application/LinkDB.php
@@ -340,7 +340,7 @@ You use the community supported version of the original Shaarli project, by Seba
340 * 340 *
341 * @return array filtered links 341 * @return array filtered links
342 */ 342 */
343 public function filter($type, $request, $casesensitive = false, $privateonly = false) 343 public function filter($type = '', $request = '', $casesensitive = false, $privateonly = false)
344 { 344 {
345 $linkFilter = new LinkFilter($this->_links); 345 $linkFilter = new LinkFilter($this->_links);
346 $requestFilter = is_array($request) ? implode(' ', $request) : $request; 346 $requestFilter = is_array($request) ? implode(' ', $request) : $request;