We have a OutputPage object; so use it to get the Title object instead of $wgTitle
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sat, 19 Feb 2011 12:31:50 +0000 (12:31 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sat, 19 Feb 2011 12:31:50 +0000 (12:31 +0000)
includes/LogEventsList.php

index 820793a..4a6db2b 100644 (file)
@@ -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,