From a9b91a9336245b615a3c5ec50b367af9c3a56efd Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Sat, 19 Feb 2011 12:31:50 +0000 Subject: [PATCH] We have a OutputPage object; so use it to get the Title object instead of $wgTitle --- includes/LogEventsList.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/LogEventsList.php b/includes/LogEventsList.php index 820793a9ef..4a6db2bdb4 100644 --- a/includes/LogEventsList.php +++ b/includes/LogEventsList.php @@ -138,7 +138,7 @@ class LogEventsList { * @return String: Formatted HTML */ private function getFilterLinks( $filter ) { - global $wgTitle, $wgLang; + global $wgLang; // show/hide links $messages = array( wfMsgHtml( 'show' ), wfMsgHtml( 'hide' ) ); // Option value -> message mapping @@ -154,7 +154,7 @@ class LogEventsList { $query[$queryKey] = $hideVal; $link = $this->skin->link( - $wgTitle, + $this->out->getTitle(), $messages[$hideVal], array(), $query, -- 2.20.1