diff --git a/Views/AbuseFilterViewDiff.php b/Views/AbuseFilterViewDiff.php index b43d8a03d..91b5915d1 100644 --- a/Views/AbuseFilterViewDiff.php +++ b/Views/AbuseFilterViewDiff.php @@ -100,7 +100,7 @@ class AbuseFilterViewDiff extends AbuseFilterView { $this->mFilter = $this->mParams[1]; if ( AbuseFilter::filterHidden( $this->mFilter ) - && !$this->getUser()->isAllowedAny( array( 'abusefilter-modify', 'abusefilter-view-private' ) ) + && !$this->getUser()->isAllowedAny( 'abusefilter-modify', 'abusefilter-view-private' ) ) { $this->getOutput()->addWikiMsg( 'abusefilter-history-error-hidden' ); return false; diff --git a/Views/AbuseFilterViewHistory.php b/Views/AbuseFilterViewHistory.php index c0004850e..eee617523 100644 --- a/Views/AbuseFilterViewHistory.php +++ b/Views/AbuseFilterViewHistory.php @@ -18,7 +18,7 @@ class AbuseFilterViewHistory extends AbuseFilterView { # Check perms. abusefilter-modify is a superset of abusefilter-view-private if ( $filter && AbuseFilter::filterHidden( $filter ) - && !$this->getUser()->isAllowedAny( array( 'abusefilter-modify', 'abusefilter-view-private' ) ) + && !$this->getUser()->isAllowedAny( 'abusefilter-modify', 'abusefilter-view-private' ) ) { $out->addWikiMsg( 'abusefilter-history-error-hidden' ); return; @@ -235,7 +235,7 @@ class AbuseFilterHistoryPager extends TablePager { } if ( !$this->getUser()->isAllowedAny( - array( 'abusefilter-modify', 'abusefilter-view-private' ) ) + 'abusefilter-modify', 'abusefilter-view-private' ) ) { // Hide data the user can't see. $info['conds']['af_hidden'] = 0;