r86328 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r86327‎ | r86328 | r86329 >
Date:17:51, 18 April 2011
Author:ialex
Status:ok
Tags:
Comment:
* Use $this->getTitle() instead of SpecialPage::getTitleFor( $this->name() )
* Fix whitespace issue
Modified paths:
  • /trunk/phase3/includes/specials/SpecialWithoutinterwiki.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/specials/SpecialWithoutinterwiki.php
@@ -49,9 +49,9 @@
5050 }
5151
5252 $prefix = $this->prefix;
53 - $t = SpecialPage::getTitleFor( $this->name() );
 53+ $t = $this->getTitle();
5454
55 - return Xml::openElement( 'form', array( 'method' => 'get', 'action' => $wgScript ) ) .
 55+ return Xml::openElement( 'form', array( 'method' => 'get', 'action' => $wgScript ) ) .
5656 Xml::openElement( 'fieldset' ) .
5757 Xml::element( 'legend', null, wfMsg( 'withoutinterwiki-legend' ) ) .
5858 Html::hidden( 'title', $t->getPrefixedText() ) .

Status & tagging log