r82449 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r82448‎ | r82449 | r82450 >
Date:12:31, 19 February 2011
Author:ialex
Status:ok
Tags:
Comment:
We have a OutputPage object; so use it to get the Title object instead of $wgTitle
Modified paths:
  • /trunk/phase3/includes/LogEventsList.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/LogEventsList.php
@@ -138,7 +138,7 @@
139139 * @return String: Formatted HTML
140140 */
141141 private function getFilterLinks( $filter ) {
142 - global $wgTitle, $wgLang;
 142+ global $wgLang;
143143 // show/hide links
144144 $messages = array( wfMsgHtml( 'show' ), wfMsgHtml( 'hide' ) );
145145 // Option value -> message mapping
@@ -154,7 +154,7 @@
155155 $query[$queryKey] = $hideVal;
156156
157157 $link = $this->skin->link(
158 - $wgTitle,
 158+ $this->out->getTitle(),
159159 $messages[$hideVal],
160160 array(),
161161 $query,

Status & tagging log