r89924 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r89923‎ | r89924 | r89925 >
Date:11:45, 12 June 2011
Author:robin
Status:ok
Tags:
Comment:
Use $this->getTitle() per comment on r89898.
Modified paths:
  • /trunk/extensions/Interwiki/Interwiki_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Interwiki/Interwiki_body.php
@@ -38,7 +38,7 @@
3939
4040 $admin = $wgUser->isAllowed( 'interwiki' );
4141 $action = $wgRequest->getVal( 'action', $par );
42 - $return = SpecialPage::getTitleFor( 'Interwiki' );
 42+ $return = $this->getTitle();
4343
4444 switch( $action ) {
4545 case 'delete':
@@ -278,7 +278,7 @@
279279 if ( $admin ) {
280280 $skin = $wgUser->getSkin();
281281 $addtext = wfMsgHtml( 'interwiki_addtext' );
282 - $addlink = $skin->link( SpecialPage::getTitleFor( 'Interwiki', 'add' ), $addtext );
 282+ $addlink = $skin->link( $this->getTitle( 'add' ), $addtext );
283283 $wgOut->addHTML( '<p class="mw-interwiki-addlink">' . $addlink . '</p>' );
284284 }
285285

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r89898Show an error when prefix or URL is empty, instead of adding it....robin22:14, 11 June 2011

Status & tagging log