No need to show links if any type is given at all
authorAaron Schulz <aaron@users.mediawiki.org>
Mon, 27 Oct 2008 07:25:11 +0000 (07:25 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Mon, 27 Oct 2008 07:25:11 +0000 (07:25 +0000)
includes/LogEventsList.php

index 91f4acf..2e57200 100644 (file)
@@ -497,9 +497,12 @@ class LogPager extends ReverseChronologicalPager {
        public function getFilterParams() {
                global $wgFilterLogTypes, $wgUser, $wgRequest;
                $filters = array();
+               if( $this->type ) {
+                       return $filters;
+               }
                foreach( $wgFilterLogTypes as $type => $default ) {
                        // Avoid silly filtering
-                       if( $type !== $this->type && ($type !== 'patrol' || $wgUser->useNPPatrol()) ) {
+                       if( $type !== 'patrol' || $wgUser->useNPPatrol() ) {
                                $hide = $wgRequest->getInt( "hide{$type}log", $default );
                                $filters[$type] = $hide;
                                if( $hide )