diff options
author | tcit <tcit@tcit.fr> | 2014-05-14 18:51:02 +0200 |
---|---|---|
committer | tcit <tcit@tcit.fr> | 2014-05-14 18:51:02 +0200 |
commit | 24696800e5caac6e37ebd2ac166578a9b18aba9d (patch) | |
tree | dd8ecc533ee0fb4aec41f8dc179ec7e2abab6387 /inc/poche/Poche.class.php | |
parent | 4910af33ff79cdce6325a07bb0dc74fe4821e680 (diff) | |
download | wallabag-24696800e5caac6e37ebd2ac166578a9b18aba9d.tar.gz wallabag-24696800e5caac6e37ebd2ac166578a9b18aba9d.tar.zst wallabag-24696800e5caac6e37ebd2ac166578a9b18aba9d.zip |
Simplifed function which does tag cleanup
Diffstat (limited to 'inc/poche/Poche.class.php')
-rwxr-xr-x | inc/poche/Poche.class.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/inc/poche/Poche.class.php b/inc/poche/Poche.class.php index 8ea5e7a2..515d4cac 100755 --- a/inc/poche/Poche.class.php +++ b/inc/poche/Poche.class.php | |||
@@ -559,6 +559,7 @@ class Poche | |||
559 | } | 559 | } |
560 | } | 560 | } |
561 | $this->messages->add('s', _('The tag has been applied successfully')); | 561 | $this->messages->add('s', _('The tag has been applied successfully')); |
562 | Tools::logm('The tag has been applied successfully'); | ||
562 | Tools::redirect(); | 563 | Tools::redirect(); |
563 | break; | 564 | break; |
564 | case 'remove_tag' : | 565 | case 'remove_tag' : |
@@ -571,8 +572,9 @@ class Poche | |||
571 | } | 572 | } |
572 | $this->store->removeTagForEntry($id, $tag_id); | 573 | $this->store->removeTagForEntry($id, $tag_id); |
573 | Tools::logm('tag entry deleted'); | 574 | Tools::logm('tag entry deleted'); |
574 | $this->store->cleanUnusedTags(); | 575 | if ($this->store->cleanUnusedTag($tag_id)) { |
575 | Tools::logm('old tags cleaned'); | 576 | Tools::logm('tag deleted'); |
577 | } | ||
576 | $this->messages->add('s', _('The tag has been successfully deleted')); | 578 | $this->messages->add('s', _('The tag has been successfully deleted')); |
577 | Tools::redirect(); | 579 | Tools::redirect(); |
578 | break; | 580 | break; |