Deprecated showHeader and make it use the new methods. Only caller anymore is Metavid...
authorNiklas Laxström <nikerabbit@users.mediawiki.org>
Thu, 8 Sep 2011 08:22:10 +0000 (08:22 +0000)
committerNiklas Laxström <nikerabbit@users.mediawiki.org>
Thu, 8 Sep 2011 08:22:10 +0000 (08:22 +0000)
includes/LogEventsList.php

index edebf86..cb4d3cf 100644 (file)
@@ -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')) );
                }