aboutsummaryrefslogtreecommitdiffhomepage
path: root/inc/poche/Poche.class.php
diff options
context:
space:
mode:
authorThomas Citharel <tcit@tcit.fr>2015-07-06 17:59:09 +0200
committerThomas Citharel <tcit@tcit.fr>2015-07-06 17:59:09 +0200
commita7be9470950e1c8c2d541424fa966fdf3b958f78 (patch)
tree27d375e3a2b1992f42f101993950b074428b65f2 /inc/poche/Poche.class.php
parent9786dbf165737a696628fccc4d7998d4af677240 (diff)
downloadwallabag-a7be9470950e1c8c2d541424fa966fdf3b958f78.tar.gz
wallabag-a7be9470950e1c8c2d541424fa966fdf3b958f78.tar.zst
wallabag-a7be9470950e1c8c2d541424fa966fdf3b958f78.zip
fix #1209
Diffstat (limited to 'inc/poche/Poche.class.php')
-rwxr-xr-xinc/poche/Poche.class.php9
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);