From 0e386d2c7fd46832fa67ce574637d30a15e88641 Mon Sep 17 00:00:00 2001 From: Igor Scheller Date: Tue, 26 Nov 2019 20:12:43 +0100 Subject: Removed global $page --- includes/pages/admin_questions.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'includes/pages/admin_questions.php') diff --git a/includes/pages/admin_questions.php b/includes/pages/admin_questions.php index 0e41390f..04868e32 100644 --- a/includes/pages/admin_questions.php +++ b/includes/pages/admin_questions.php @@ -18,9 +18,7 @@ function admin_questions_title() */ function admin_new_questions() { - global $page; - - if ($page != 'admin_questions') { + if (current_page() != 'admin_questions') { if (auth()->can('admin_questions')) { $new_messages = count(DB::select('SELECT `QID` FROM `Questions` WHERE `AID` IS NULL')); -- cgit v1.2.3-54-g00ecf