/** * Set page title and show header for this log type * @param $type Array * @deprecated in 1.19 */ public function showHeader( $type ) { wfDeprecated( __METHOD__, '1.19' ); // If only one log type is used, then show a special message... $headerType = count( $type ) == 1 ? $type[0] : ''; $out = $this->getOutput(); if ( LogPage::isLogType( $headerType ) ) { $page = new LogPage( $headerType ); $out->setPageTitle( $page->getName()->text() ); $out->addHTML( $page->getDescription()->parseAsBlock() ); } else { $out->addHTML( $this->msg( 'alllogstext' )->parse() ); } }
/** * Set page title and show header for this log type * @param string $type * @since 1.19 */ protected function addHeader($type) { $page = new LogPage($type); $this->getOutput()->setPageTitle($page->getName()); $this->getOutput()->addHTML($page->getDescription()->setContext($this->getContext())->parseAsBlock()); }