clean up tags when deleting an image

This commit is contained in:
Shish 2009-01-19 10:28:03 -08:00
parent 066474c5c5
commit 6e44111e0e

View File

@ -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());