From: umherirrender Date: Thu, 29 Jan 2015 15:51:49 +0000 (+0100) Subject: Set context when parsing message in SpecialLog::addHeader X-Git-Tag: 1.31.0-rc.0~12566^2 X-Git-Url: http://git.cyclocoop.org/%24self?a=commitdiff_plain;h=3014773be49afc26a58c9c4b7e7feadf89282764;p=lhc%2Fweb%2Fwiklou.git Set context when parsing message in SpecialLog::addHeader Also direct passing a message object to OutputPage::setPageTitle Change-Id: If88ca673bffa033f9cd9cc7a680b73aa701578f3 --- diff --git a/includes/specials/SpecialLog.php b/includes/specials/SpecialLog.php index 923283eb2e..9315eb822b 100644 --- a/includes/specials/SpecialLog.php +++ b/includes/specials/SpecialLog.php @@ -237,8 +237,9 @@ class SpecialLog extends SpecialPage { */ protected function addHeader( $type ) { $page = new LogPage( $type ); - $this->getOutput()->setPageTitle( $page->getName()->text() ); - $this->getOutput()->addHTML( $page->getDescription()->parseAsBlock() ); + $this->getOutput()->setPageTitle( $page->getName() ); + $this->getOutput()->addHTML( $page->getDescription() + ->setContext( $this->getContext() )->parseAsBlock() ); } protected function getGroupName() {