Replace usage of SpecialPage::getTitle with getPageTitle

Was deprecated in 1.23, see Icdcf5d5295ef5e7f08b1d403e0c123f78738fd40

Change-Id: I1afffae3c772af6e2d7f8a285e7cf7265f568dd9
This commit is contained in:
Kunal Mehta 2013-12-26 23:01:43 -08:00 committed by Siebrand
parent 1087521f22
commit 3bfec2ffa9

View file

@ -36,7 +36,7 @@ class SpecialInterwiki extends SpecialPage {
$out->addModules( 'ext.interwiki.specialpage' );
$action = $par ? $par : $request->getVal( 'action', $par );
$return = $this->getTitle();
$return = $this->getPageTitle();
switch( $action ) {
case 'delete':
@ -186,7 +186,7 @@ class SpecialInterwiki extends SpecialPage {
array(
'id' => "mw-interwiki-{$action}form",
'method' => 'post',
'action' => $this->getTitle()->getLocalUrl( array(
'action' => $this->getPageTitle()->getLocalUrl( array(
'action' => 'submit',
'prefix' => $prefix
) )
@ -229,7 +229,7 @@ class SpecialInterwiki extends SpecialPage {
return;
}
$reason = $request->getText( 'wpInterwikiReason' );
$selfTitle = $this->getTitle();
$selfTitle = $this->getPageTitle();
$dbw = wfGetDB( DB_MASTER );
switch( $do ) {
case 'delete':
@ -325,7 +325,7 @@ class SpecialInterwiki extends SpecialPage {
if ( $canModify ) {
$this->getOutput()->addHTML( "<br />" . $this->msg( 'interwiki_intro_footer' )->parse() );
$addtext = $this->msg( 'interwiki_addtext' )->escaped();
$addlink = Linker::linkKnown( $this->getTitle( 'add' ), $addtext );
$addlink = Linker::linkKnown( $this->getPageTitle( 'add' ), $addtext );
$this->getOutput()->addHTML( '<p class="mw-interwiki-addlink">' . $addlink . '</p>' );
}
@ -363,7 +363,7 @@ class SpecialInterwiki extends SpecialPage {
);
$out .= Html::closeElement( 'tr' ) . "\n";
$selfTitle = $this->getTitle();
$selfTitle = $this->getPageTitle();
# Output the existing Interwiki prefixes table rows
foreach ( $iwPrefixes as $iwPrefix ) {