clean up tags when deleting an image
This commit is contained in:
parent
066474c5c5
commit
6e44111e0e
@ -275,6 +275,7 @@ class Image {
|
||||
* Other actions
|
||||
*/
|
||||
public function delete() {
|
||||
$this->delete_tags_from_image();
|
||||
$this->database->execute("DELETE FROM images WHERE id=?", array($this->id));
|
||||
|
||||
unlink($this->get_image_filename());
|
||||
|
Loading…
x
Reference in New Issue
Block a user