From 3014773be49afc26a58c9c4b7e7feadf89282764 Mon Sep 17 00:00:00 2001 From: umherirrender Date: Thu, 29 Jan 2015 16:51:49 +0100 Subject: [PATCH] Set context when parsing message in SpecialLog::addHeader Also direct passing a message object to OutputPage::setPageTitle Change-Id: If88ca673bffa033f9cd9cc7a680b73aa701578f3 --- includes/specials/SpecialLog.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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() { -- 2.20.1