Make "show" work ;)
authorAaron Schulz <aaron@users.mediawiki.org>
Mon, 27 Oct 2008 07:23:10 +0000 (07:23 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Mon, 27 Oct 2008 07:23:10 +0000 (07:23 +0000)
includes/LogEventsList.php

index 61ecf58..91f4acf 100644 (file)
@@ -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;