fix for bug #779
This commit is contained in:
parent
2e24246984
commit
7d96035f02
@ -162,6 +162,7 @@ class CommentList extends SimpleExtension {
|
|||||||
|
|
||||||
public function onImageDeletion($event) {
|
public function onImageDeletion($event) {
|
||||||
global $database;
|
global $database;
|
||||||
|
$image_id = $event->image->id;
|
||||||
$database->Execute("DELETE FROM comments WHERE image_id=?", array($image_id));
|
$database->Execute("DELETE FROM comments WHERE image_id=?", array($image_id));
|
||||||
log_info("comment", "Deleting all comments for Image #$image_id");
|
log_info("comment", "Deleting all comments for Image #$image_id");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user