From: Alexandre Emsenhuber Date: Mon, 11 Jul 2011 08:17:26 +0000 (+0000) Subject: Use getPageTitle() to set the page title instead of doing it manually X-Git-Tag: 1.31.0-rc.0~28942 X-Git-Url: http://git.cyclocoop.org/clavettes/images/siteon3.jpg?a=commitdiff_plain;h=f9a77b3a0ffa4fcf240ff262c30b08e9bc6f3097;p=lhc%2Fweb%2Fwiklou.git Use getPageTitle() to set the page title instead of doing it manually --- diff --git a/includes/actions/InfoAction.php b/includes/actions/InfoAction.php index 82b5211e69..b0b5f2594a 100644 --- a/includes/actions/InfoAction.php +++ b/includes/actions/InfoAction.php @@ -45,13 +45,15 @@ class InfoAction extends FormlessAction { return false; } + protected function getPageTitle() { + return wfMsg( 'pageinfo-title', $this->getTitle()->getSubjectPage()->getPrefixedText() ); + } + public function onView() { global $wgDisableCounters; $title = $this->getTitle()->getSubjectPage(); - $this->getOutput()->setPagetitle( wfMsg( 'pageinfo-title', $title->getPrefixedText() ) ); - $pageInfo = self::pageCountInfo( $title ); $talkInfo = self::pageCountInfo( $title->getTalkPage() );