Slight UI cleanup
authorAaron Schulz <aaron@users.mediawiki.org>
Wed, 2 Apr 2008 18:09:02 +0000 (18:09 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Wed, 2 Apr 2008 18:09:02 +0000 (18:09 +0000)
includes/LogEventsList.php

index a5f82ba..373dd03 100644 (file)
@@ -374,6 +374,11 @@ class LogPager extends ReverseChronologicalPager {
         * @private
         */
        private function limitType( $type ) {
+               global $wgLogRestrictions, $wgUser;
+               // Don't even show header for private logs; don't recognize it...
+               if( isset($wgLogRestrictions[$type]) && !$wgUser->isAllowed($wgLogRestrictions[$type]) ) {
+                       $type = '';
+               }
                // Don't show private logs to unpriviledged users
                $hideLogs = LogEventsList::getExcludeClause( $this->mDb );
                if( $hideLogs !== false ) {