mirror of
https://github.com/wallabag/wallabag.git
synced 2025-02-27 07:56:20 +00:00
fix #1209
This commit is contained in:
parent
9786dbf165
commit
a7be947095
1 changed files with 9 additions and 0 deletions
|
@ -266,6 +266,15 @@ class Poche
|
||||||
}
|
}
|
||||||
foreach($entry_ids as $id) {
|
foreach($entry_ids as $id) {
|
||||||
$msg = 'delete link #' . $id;
|
$msg = 'delete link #' . $id;
|
||||||
|
|
||||||
|
// deleting tags and tags_entries
|
||||||
|
$tags = $this->store->retrieveTagsByEntry($id);
|
||||||
|
foreach ($tags as $tag) {
|
||||||
|
$this->store->removeTagForEntry($id, $tag['id']);
|
||||||
|
$this->store->cleanUnusedTag($tag['id']);
|
||||||
|
}
|
||||||
|
|
||||||
|
// deleting pictures
|
||||||
if ($this->store->deleteById($id, $this->user->getId())) {
|
if ($this->store->deleteById($id, $this->user->getId())) {
|
||||||
if (DOWNLOAD_PICTURES) {
|
if (DOWNLOAD_PICTURES) {
|
||||||
Picture::removeDirectory(ABS_PATH . $id);
|
Picture::removeDirectory(ABS_PATH . $id);
|
||||||
|
|
Loading…
Reference in a new issue