make comment deletion do something...
This commit is contained in:
parent
ffe6bc3597
commit
f9b987a7ce
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user