jenkins-bot has submitted this change and it was merged.

Change subject: Set context when parsing message in SpecialLog::addHeader
......................................................................


Set context when parsing message in SpecialLog::addHeader

Also direct passing a message object to OutputPage::setPageTitle

Change-Id: If88ca673bffa033f9cd9cc7a680b73aa701578f3
---
M includes/specials/SpecialLog.php
1 file changed, 3 insertions(+), 2 deletions(-)

Approvals:
  Legoktm: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/includes/specials/SpecialLog.php b/includes/specials/SpecialLog.php
index 923283e..9315eb8 100644
--- a/includes/specials/SpecialLog.php
+++ b/includes/specials/SpecialLog.php
@@ -237,8 +237,9 @@
         */
        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() {

-- 
To view, visit https://gerrit.wikimedia.org/r/187387
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: If88ca673bffa033f9cd9cc7a680b73aa701578f3
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Umherirrender <[email protected]>
Gerrit-Reviewer: Legoktm <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to