From 6e8f397cad70b5e074f9ec0ca201ebafed868a3a Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Mon, 27 Oct 2008 07:23:10 +0000 Subject: [PATCH] Make "show" work ;) --- includes/LogEventsList.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/includes/LogEventsList.php b/includes/LogEventsList.php index 61ecf58022..91f4acfbb0 100644 --- a/includes/LogEventsList.php +++ b/includes/LogEventsList.php @@ -500,8 +500,10 @@ class LogPager extends ReverseChronologicalPager { foreach( $wgFilterLogTypes as $type => $default ) { // Avoid silly filtering if( $type !== $this->type && ($type !== 'patrol' || $wgUser->useNPPatrol()) ) { - $filters[$type] = $wgRequest->getInt( "hide{$type}log", $default ); - $this->mConds[] = 'log_type != '.$this->mDb->addQuotes( $this->mDb->strencode($type) ); + $hide = $wgRequest->getInt( "hide{$type}log", $default ); + $filters[$type] = $hide; + if( $hide ) + $this->mConds[] = 'log_type != '.$this->mDb->addQuotes( $this->mDb->strencode($type) ); } } return $filters; -- 2.20.1