Index: trunk/phase3/includes/LogEventsList.php |
— | — | @@ -49,12 +49,16 @@ |
50 | 50 | |
51 | 51 | /** |
52 | 52 | * Set page title and show header for this log type |
53 | | - * @param $type String |
| 53 | + * @param $type Array |
54 | 54 | */ |
55 | 55 | public function showHeader( $type ) { |
56 | | - if( LogPage::isLogType( $type ) ) { |
57 | | - $this->out->setPageTitle( LogPage::logName( $type ) ); |
58 | | - $this->out->addHTML( LogPage::logHeader( $type ) ); |
| 56 | + // If only one log type is used, then show a special message... |
| 57 | + $headerType = (count($type) == 1) ? $type[0] : ''; |
| 58 | + if( LogPage::isLogType( $headerType ) ) { |
| 59 | + $this->out->setPageTitle( LogPage::logName( $headerType ) ); |
| 60 | + $this->out->addHTML( LogPage::logHeader( $headerType ) ); |
| 61 | + } else { |
| 62 | + $this->out->addHTML( wfMsgExt('alllogstext',array('parseinline')) ); |
59 | 63 | } |
60 | 64 | } |
61 | 65 | |
Index: trunk/phase3/includes/LogPage.php |
— | — | @@ -133,6 +133,7 @@ |
134 | 134 | |
135 | 135 | /** |
136 | 136 | * @static |
| 137 | + * @param string $type logtype |
137 | 138 | */ |
138 | 139 | public static function logName( $type ) { |
139 | 140 | global $wgLogNames, $wgMessageCache; |