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/user_news.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'includes/pages/user_news.php') 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 .= '
'; $html .= '
'; @@ -109,7 +107,7 @@ function display_news(News $news): string $html .= ' ' . $news->created_at->format('Y-m-d H:i') . ' '; $html .= User_Nick_render($news->user); - if ($page != 'news_comments') { + if (current_page() != 'news_comments') { $html .= ' ' . ' ' . __('Comments') . ' » ' -- cgit v1.3.1