Index: trunk/phase3/includes/specials/SpecialWhatlinkshere.php |
— | — | @@ -73,7 +73,7 @@ |
74 | 74 | return; |
75 | 75 | } |
76 | 76 | |
77 | | - $this->selfTitle = SpecialPage::getTitleFor( 'Whatlinkshere', $this->target->getPrefixedDBkey() ); |
| 77 | + $this->selfTitle = $this->getTitle( $this->target->getPrefixedDBkey() ); |
78 | 78 | |
79 | 79 | $wgOut->setPageTitle( wfMsg( 'whatlinkshere-title', $this->target->getPrefixedText() ) ); |
80 | 80 | $wgOut->setSubtitle( wfMsg( 'whatlinkshere-backlink', $this->skin->link( $this->target, $this->target->getPrefixedText(), array(), array( 'redirect' => 'no' ) ) ) ); |
— | — | @@ -316,7 +316,7 @@ |
317 | 317 | protected function wlhLink( Title $target, $text ) { |
318 | 318 | static $title = null; |
319 | 319 | if ( $title === null ) |
320 | | - $title = SpecialPage::getTitleFor( 'Whatlinkshere' ); |
| 320 | + $title = $this->getTitle(); |
321 | 321 | |
322 | 322 | return $this->skin->linkKnown( |
323 | 323 | $title, |
— | — | @@ -381,7 +381,7 @@ |
382 | 382 | $f = Xml::openElement( 'form', array( 'action' => $wgScript ) ); |
383 | 383 | |
384 | 384 | # Values that should not be forgotten |
385 | | - $f .= Xml::hidden( 'title', SpecialPage::getTitleFor( 'Whatlinkshere' )->getPrefixedText() ); |
| 385 | + $f .= Xml::hidden( 'title', $this->getTitle()->getPrefixedText() ); |
386 | 386 | foreach ( $this->opts->getUnconsumedValues() as $name => $value ) { |
387 | 387 | $f .= Xml::hidden( $name, $value ); |
388 | 388 | } |