diff options
author | Thomas Citharel <tcit@tcit.fr> | 2015-07-06 17:59:09 +0200 |
---|---|---|
committer | Thomas Citharel <tcit@tcit.fr> | 2015-07-06 17:59:09 +0200 |
commit | a7be9470950e1c8c2d541424fa966fdf3b958f78 (patch) | |
tree | 27d375e3a2b1992f42f101993950b074428b65f2 | |
parent | 9786dbf165737a696628fccc4d7998d4af677240 (diff) | |
download | wallabag-a7be9470950e1c8c2d541424fa966fdf3b958f78.tar.gz wallabag-a7be9470950e1c8c2d541424fa966fdf3b958f78.tar.zst wallabag-a7be9470950e1c8c2d541424fa966fdf3b958f78.zip |
fix #1209
-rwxr-xr-x | inc/poche/Poche.class.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/inc/poche/Poche.class.php b/inc/poche/Poche.class.php index baa08788..754d7c7e 100755 --- a/inc/poche/Poche.class.php +++ b/inc/poche/Poche.class.php | |||
@@ -266,6 +266,15 @@ class Poche | |||
266 | } | 266 | } |
267 | foreach($entry_ids as $id) { | 267 | foreach($entry_ids as $id) { |
268 | $msg = 'delete link #' . $id; | 268 | $msg = 'delete link #' . $id; |
269 | |||
270 | // deleting tags and tags_entries | ||
271 | $tags = $this->store->retrieveTagsByEntry($id); | ||
272 | foreach ($tags as $tag) { | ||
273 | $this->store->removeTagForEntry($id, $tag['id']); | ||
274 | $this->store->cleanUnusedTag($tag['id']); | ||
275 | } | ||
276 | |||
277 | // deleting pictures | ||
269 | if ($this->store->deleteById($id, $this->user->getId())) { | 278 | if ($this->store->deleteById($id, $this->user->getId())) { |
270 | if (DOWNLOAD_PICTURES) { | 279 | if (DOWNLOAD_PICTURES) { |
271 | Picture::removeDirectory(ABS_PATH . $id); | 280 | Picture::removeDirectory(ABS_PATH . $id); |