From a0c5e55f19a3c19b4a545b80d3b1a0f2960eb192 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Mon, 27 Oct 2008 07:25:11 +0000 Subject: [PATCH] No need to show links if any type is given at all --- includes/LogEventsList.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/includes/LogEventsList.php b/includes/LogEventsList.php index 91f4acfbb0..2e57200fd4 100644 --- a/includes/LogEventsList.php +++ b/includes/LogEventsList.php @@ -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 ) -- 2.20.1