From 5eee6f6e5dd7c135369c798ee5c78ab19c382764 Mon Sep 17 00:00:00 2001 From: Daimona Eaytoy Date: Thu, 7 Jan 2021 17:24:33 +0100 Subject: [PATCH] Don't show checkbox for hiding AbuseLog entries when showing details The checkbox should only appear on Special:AbuseLog, not when deleting items (checked with $this->hideEntries), AND not when viewing details of a single entry, which is check with $isListItem. Change-Id: Id2db07641bf98992b4838e4e7439ac3ee4b1ad8e --- includes/Pager/AbuseLogPager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/Pager/AbuseLogPager.php b/includes/Pager/AbuseLogPager.php index d1de4b3c6..aa1720915 100644 --- a/includes/Pager/AbuseLogPager.php +++ b/includes/Pager/AbuseLogPager.php @@ -283,7 +283,7 @@ class AbuseLogPager extends ReverseChronologicalPager { $this->msg( 'abusefilter-log-hidden-implicit' )->parse(); } - if ( !$this->hideEntries && $this->afPermissionManager->canHideAbuseLog( $user ) ) { + if ( $isListItem && !$this->hideEntries && $this->afPermissionManager->canHideAbuseLog( $user ) ) { $description = Xml::check( 'hideids[' . $row->afl_id . ']' ) . $description; }