From: Aaron Schulz Date: Mon, 27 Oct 2008 07:23:10 +0000 (+0000) Subject: Make "show" work ;) X-Git-Tag: 1.31.0-rc.0~44570 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/One?a=commitdiff_plain;h=6e8f397cad70b5e074f9ec0ca201ebafed868a3a;p=lhc%2Fweb%2Fwiklou.git Make "show" work ;) --- 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;