make comment deletion do something...

This commit is contained in:
Shish 2009-08-12 15:40:13 +01:00
parent 00b66e383c
commit 2661e26d81

View File

@ -165,8 +165,8 @@ class CommentList extends SimpleExtension {
public function onCommentDeletion($event) {
global $database;
$database->Execute("DELETE FROM comments WHERE id=?", array($comment_id));
log_info("comment", "Deleting Comment #$comment_id");
$database->Execute("DELETE FROM comments WHERE id=?", array($event->comment_id));
log_info("comment", "Deleting Comment #{$event->comment_id}");
}
public function onSetupBuilding($event) {