X-Git-Url: http://git.cyclocoop.org//%22javascript:ModifierStyle%28%27%22.%24id.%22%27%29/%22?a=blobdiff_plain;f=includes%2Flogging%2FLogEventsList.php;h=40498cd558c2837313f371db90ad86ae9d28cba0;hb=6e956d55aac4e4d7e6145ed51c44311ca0e9b0c7;hp=93a81cff8e13b91b179630eae1b5ce8b17ae1976;hpb=cf3bdd40a3fd22045703c1e188115fc87386fa65;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/logging/LogEventsList.php b/includes/logging/LogEventsList.php index 93a81cff8e..40498cd558 100644 --- a/includes/logging/LogEventsList.php +++ b/includes/logging/LogEventsList.php @@ -97,7 +97,7 @@ class LogEventsList extends ContextSource { * @param array|string $types * @param string $user * @param string $page - * @param string $pattern + * @param bool $pattern * @param int|string $year Use 0 to start with no year preselected. * @param int|string $month A month in the 1..12 range. Use 0 to start with no month * preselected. @@ -105,7 +105,7 @@ class LogEventsList extends ContextSource { * @param string $tagFilter Tag to select by default * @param string $action */ - public function showOptions( $types = [], $user = '', $page = '', $pattern = '', $year = 0, + public function showOptions( $types = [], $user = '', $page = '', $pattern = false, $year = 0, $month = 0, $filter = null, $tagFilter = '', $action = null ) { global $wgScript, $wgMiserMode; @@ -289,7 +289,7 @@ class LogEventsList extends ContextSource { } /** - * @param string $pattern + * @param bool $pattern * @return string Checkbox */ private function getTitlePattern( $pattern ) { @@ -553,7 +553,7 @@ class LogEventsList extends ContextSource { } $permissionlist = implode( ', ', $permissions ); wfDebug( "Checking for $permissionlist due to $field match on $bitfield\n" ); - return call_user_func_array( [ $user, 'isAllowedAny' ], $permissions ); + return $user->isAllowedAny( ...$permissions ); } return true; }