diff options
author | Igor Scheller <igor.scheller@igorshp.de> | 2019-11-26 20:12:43 +0100 |
---|---|---|
committer | Igor Scheller <igor.scheller@igorshp.de> | 2019-11-28 14:30:41 +0100 |
commit | 0e386d2c7fd46832fa67ce574637d30a15e88641 (patch) | |
tree | 44f9edd47376d05773cca3e0065da6d97f102604 /includes/pages/admin_questions.php | |
parent | a2f4426058794673c4a880e9544635b71a95690a (diff) |
Removed global $page
Diffstat (limited to 'includes/pages/admin_questions.php')
-rw-r--r-- | includes/pages/admin_questions.php | 4 |
1 files changed, 1 insertions, 3 deletions
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')); |