dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
50d4478
)
Slight UI cleanup
author
Aaron Schulz
<aaron@users.mediawiki.org>
Wed, 2 Apr 2008 18:09:02 +0000
(18:09 +0000)
committer
Aaron Schulz
<aaron@users.mediawiki.org>
Wed, 2 Apr 2008 18:09:02 +0000
(18:09 +0000)
includes/LogEventsList.php
patch
|
blob
|
history
diff --git
a/includes/LogEventsList.php
b/includes/LogEventsList.php
index
a5f82ba
..
373dd03
100644
(file)
--- 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 ) {