make comment deletion do something...

This commit is contained in:
Shish 2009-08-12 15:40:13 +01:00
parent ffe6bc3597
commit f9b987a7ce

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) {