From: Aaron Schulz Date: Wed, 2 Apr 2008 18:09:02 +0000 (+0000) Subject: Slight UI cleanup X-Git-Tag: 1.31.0-rc.0~48656 X-Git-Url: http://git.cyclocoop.org/%22.%28%24lien.?a=commitdiff_plain;h=1b2a5594e20e2592ce59fc22d88b3f3daa2d4d57;p=lhc%2Fweb%2Fwiklou.git Slight UI cleanup --- diff --git a/includes/LogEventsList.php b/includes/LogEventsList.php index a5f82ba475..373dd031c2 100644 --- a/includes/LogEventsList.php +++ b/includes/LogEventsList.php @@ -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 ) {