r91861 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r91860‎ | r91861 | r91862 >
Date:08:17, 11 July 2011
Author:ialex
Status:ok
Tags:
Comment:
Use getPageTitle() to set the page title instead of doing it manually
Modified paths:
  • /trunk/phase3/includes/actions/InfoAction.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/actions/InfoAction.php
@@ -45,13 +45,15 @@
4646 return false;
4747 }
4848
 49+ protected function getPageTitle() {
 50+ return wfMsg( 'pageinfo-title', $this->getTitle()->getSubjectPage()->getPrefixedText() );
 51+ }
 52+
4953 public function onView() {
5054 global $wgDisableCounters;
5155
5256 $title = $this->getTitle()->getSubjectPage();
5357
54 - $this->getOutput()->setPagetitle( wfMsg( 'pageinfo-title', $title->getPrefixedText() ) );
55 -
5658 $pageInfo = self::pageCountInfo( $title );
5759 $talkInfo = self::pageCountInfo( $title->getTalkPage() );
5860

Status & tagging log