(bug 19596) Fix more fucked up garbage from when $types was made into an array in...
authorAaron Schulz <aaron@users.mediawiki.org>
Mon, 20 Jul 2009 05:38:26 +0000 (05:38 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Mon, 20 Jul 2009 05:38:26 +0000 (05:38 +0000)
includes/LogEventsList.php
includes/LogPage.php

index eb43cbc..41e779e 100644 (file)
@@ -49,12 +49,16 @@ class LogEventsList {
 
        /**
         * Set page title and show header for this log type
-        * @param $type String
+        * @param $type Array
         */
        public function showHeader( $type ) {
-               if( LogPage::isLogType( $type ) ) {
-                       $this->out->setPageTitle( LogPage::logName( $type ) );
-                       $this->out->addHTML( LogPage::logHeader( $type ) );
+               // 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 ) );
+               } else {
+                       $this->out->addHTML( wfMsgExt('alllogstext',array('parseinline')) );
                }
        }
 
index be4a1c0..947a452 100644 (file)
@@ -133,6 +133,7 @@ class LogPage {
 
        /**
         * @static
+        * @param string $type logtype
         */
        public static function logName( $type ) {
                global $wgLogNames, $wgMessageCache;