From c229411ddae9baa317aaf20f8920524ebf05da1c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Niklas=20Laxstr=C3=B6m?= Date: Thu, 8 Sep 2011 08:22:10 +0000 Subject: [PATCH] Deprecated showHeader and make it use the new methods. Only caller anymore is MetavidWiki - trying to find out what is going to be the fate of that extension. --- includes/LogEventsList.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/includes/LogEventsList.php b/includes/LogEventsList.php index edebf866c3..cb4d3cf11d 100644 --- a/includes/LogEventsList.php +++ b/includes/LogEventsList.php @@ -74,13 +74,16 @@ class LogEventsList { /** * Set page title and show header for this log type * @param $type Array + * @deprecated in 1.19 */ public function showHeader( $type ) { + wfDeprecated( __METHOD__ ); // If only one log type is used, then show a special message... $headerType = (count($type) == 1) ? $type[0] : ''; if( LogPage::isLogType( $headerType ) ) { - $this->out->setPageTitle( LogPage::logName( $headerType ) ); - $this->out->addHTML( LogPage::logHeader( $headerType ) ); + $page = new LogPage( $headerType ); + $this->out->setPageTitle( $page->getName()->text() ); + $this->out->addHTML( $page->getDescription()->parseAsBlock() ); } else { $this->out->addHTML( wfMsgExt('alllogstext',array('parseinline')) ); } -- 2.20.1