fix missing global (how did this pass tests? o.o)

This commit is contained in:
Shish 2014-12-18 14:38:22 +00:00
parent c0279565f4
commit be4ae9da32

View file

@ -54,6 +54,7 @@ xanax
}
public function onCommentPosting(CommentPostingEvent $event) {
global $user;
if(!$user->can("bypass_comment_checks")) {
$this->test_text($event->comment, new CommentPostingException("Comment contains banned terms"));
}