Umherirrender has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/187387

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(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/87/187387/1

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: newchange
Gerrit-Change-Id: If88ca673bffa033f9cd9cc7a680b73aa701578f3
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Umherirrender <[email protected]>

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

Reply via email to