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')); diff --git a/includes/pages/user_news.php b/includes/pages/user_news.php index 8ce3dffb..4eb8f0ce 100644 --- a/includes/pages/user_news.php +++ b/includes/pages/user_news.php @@ -87,8 +87,6 @@ function news_text(News $news): string */ function display_news(News $news): string { - global $page; - $html = ''; $html .= '