From: Alexandre Emsenhuber Date: Sun, 1 Aug 2010 09:09:48 +0000 (+0000) Subject: SpecialPage provides a getTitle() function, so use it X-Git-Tag: 1.31.0-rc.0~35807 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/password.php?a=commitdiff_plain;h=04e64389ff66804fb28238ddacd224e90451d7d9;p=lhc%2Fweb%2Fwiklou.git SpecialPage provides a getTitle() function, so use it --- 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 ); }