make comment deletion do something...
This commit is contained in:
		
							parent
							
								
									00b66e383c
								
							
						
					
					
						commit
						2661e26d81
					
				@ -165,8 +165,8 @@ class CommentList extends SimpleExtension {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
	public function onCommentDeletion($event) {
 | 
						public function onCommentDeletion($event) {
 | 
				
			||||||
		global $database;
 | 
							global $database;
 | 
				
			||||||
		$database->Execute("DELETE FROM comments WHERE id=?", array($comment_id));
 | 
							$database->Execute("DELETE FROM comments WHERE id=?", array($event->comment_id));
 | 
				
			||||||
		log_info("comment", "Deleting Comment #$comment_id");
 | 
							log_info("comment", "Deleting Comment #{$event->comment_id}");
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	public function onSetupBuilding($event) {
 | 
						public function onSetupBuilding($event) {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user