Set context when parsing message in SpecialLog::addHeader
authorumherirrender <umherirrender_de.wp@web.de>
Thu, 29 Jan 2015 15:51:49 +0000 (16:51 +0100)
committerumherirrender <umherirrender_de.wp@web.de>
Thu, 29 Jan 2015 15:51:49 +0000 (16:51 +0100)
Also direct passing a message object to OutputPage::setPageTitle

Change-Id: If88ca673bffa033f9cd9cc7a680b73aa701578f3

includes/specials/SpecialLog.php

index 923283e..9315eb8 100644 (file)
@@ -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() {