Index: trunk/phase3/includes/LogEventsList.php |
— | — | @@ -74,13 +74,16 @@ |
75 | 75 | /** |
76 | 76 | * Set page title and show header for this log type |
77 | 77 | * @param $type Array |
| 78 | + * @deprecated in 1.19 |
78 | 79 | */ |
79 | 80 | public function showHeader( $type ) { |
| 81 | + wfDeprecated( __METHOD__ ); |
80 | 82 | // If only one log type is used, then show a special message... |
81 | 83 | $headerType = (count($type) == 1) ? $type[0] : ''; |
82 | 84 | if( LogPage::isLogType( $headerType ) ) { |
83 | | - $this->out->setPageTitle( LogPage::logName( $headerType ) ); |
84 | | - $this->out->addHTML( LogPage::logHeader( $headerType ) ); |
| 85 | + $page = new LogPage( $headerType ); |
| 86 | + $this->out->setPageTitle( $page->getName()->text() ); |
| 87 | + $this->out->addHTML( $page->getDescription()->parseAsBlock() ); |
85 | 88 | } else { |
86 | 89 | $this->out->addHTML( wfMsgExt('alllogstext',array('parseinline')) ); |
87 | 90 | } |