From 04e64389ff66804fb28238ddacd224e90451d7d9 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Sun, 1 Aug 2010 09:09:48 +0000 Subject: [PATCH] SpecialPage provides a getTitle() function, so use it --- includes/specials/SpecialWhatlinkshere.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/specials/SpecialWhatlinkshere.php b/includes/specials/SpecialWhatlinkshere.php index c7fee57fc7..23651b99a2 100644 --- a/includes/specials/SpecialWhatlinkshere.php +++ b/includes/specials/SpecialWhatlinkshere.php @@ -73,7 +73,7 @@ class SpecialWhatLinksHere extends SpecialPage { return; } - $this->selfTitle = SpecialPage::getTitleFor( 'Whatlinkshere', $this->target->getPrefixedDBkey() ); + $this->selfTitle = $this->getTitle( $this->target->getPrefixedDBkey() ); $wgOut->setPageTitle( wfMsg( 'whatlinkshere-title', $this->target->getPrefixedText() ) ); $wgOut->setSubtitle( wfMsg( 'whatlinkshere-backlink', $this->skin->link( $this->target, $this->target->getPrefixedText(), array(), array( 'redirect' => 'no' ) ) ) ); @@ -316,7 +316,7 @@ class SpecialWhatLinksHere extends SpecialPage { protected function wlhLink( Title $target, $text ) { static $title = null; if ( $title === null ) - $title = SpecialPage::getTitleFor( 'Whatlinkshere' ); + $title = $this->getTitle(); return $this->skin->linkKnown( $title, @@ -381,7 +381,7 @@ class SpecialWhatLinksHere extends SpecialPage { $f = Xml::openElement( 'form', array( 'action' => $wgScript ) ); # Values that should not be forgotten - $f .= Xml::hidden( 'title', SpecialPage::getTitleFor( 'Whatlinkshere' )->getPrefixedText() ); + $f .= Xml::hidden( 'title', $this->getTitle()->getPrefixedText() ); foreach ( $this->opts->getUnconsumedValues() as $name => $value ) { $f .= Xml::hidden( $name, $value ); } -- 2.20.1