From be4ae9da320152fa4475b6c5b81942870e1a5b60 Mon Sep 17 00:00:00 2001 From: Shish Date: Thu, 18 Dec 2014 14:38:22 +0000 Subject: [PATCH] fix missing global (how did this pass tests? o.o) --- ext/ban_words/main.php | 1 + 1 file changed, 1 insertion(+) diff --git a/ext/ban_words/main.php b/ext/ban_words/main.php index c9256a58..86463306 100644 --- a/ext/ban_words/main.php +++ b/ext/ban_words/main.php @@ -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")); }