dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Replace call_user_func_array(), part 2
[lhc/web/wiklou.git]
/
includes
/
logging
/
LogEventsList.php
diff --git
a/includes/logging/LogEventsList.php
b/includes/logging/LogEventsList.php
index
00d3bd3
..
40498cd
100644
(file)
--- a/
includes/logging/LogEventsList.php
+++ b/
includes/logging/LogEventsList.php
@@
-97,14
+97,15
@@
class LogEventsList extends ContextSource {
* @param array|string $types
* @param string $user
* @param string $page
* @param array|string $types
* @param string $user
* @param string $page
- * @param string $pattern
- * @param int $year Year
- * @param int $month Month
+ * @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.
* @param array $filter
* @param string $tagFilter Tag to select by default
* @param string $action
*/
* @param array $filter
* @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;
$month = 0, $filter = null, $tagFilter = '', $action = null
) {
global $wgScript, $wgMiserMode;
@@
-288,7
+289,7
@@
class LogEventsList extends ContextSource {
}
/**
}
/**
- * @param
string
$pattern
+ * @param
bool
$pattern
* @return string Checkbox
*/
private function getTitlePattern( $pattern ) {
* @return string Checkbox
*/
private function getTitlePattern( $pattern ) {
@@
-426,7
+427,7
@@
class LogEventsList extends ContextSource {
}
/**
}
/**
- * @param stdClass $row
Row
+ * @param stdClass $row
* @return string
*/
private function getShowHideLinks( $row ) {
* @return string
*/
private function getShowHideLinks( $row ) {
@@
-496,7
+497,7
@@
class LogEventsList extends ContextSource {
}
/**
}
/**
- * @param stdClass $row
Row
+ * @param stdClass $row
* @param string|array $type
* @param string|array $action
* @param string $right
* @param string|array $type
* @param string|array $action
* @param string $right
@@
-521,7
+522,7
@@
class LogEventsList extends ContextSource {
* Determine if the current user is allowed to view a particular
* field of this log row, if it's marked as deleted.
*
* Determine if the current user is allowed to view a particular
* field of this log row, if it's marked as deleted.
*
- * @param stdClass $row
Row
+ * @param stdClass $row
* @param int $field
* @param User $user User to check, or null to use $wgUser
* @return bool
* @param int $field
* @param User $user User to check, or null to use $wgUser
* @return bool
@@
-552,13
+553,13
@@
class LogEventsList extends ContextSource {
}
$permissionlist = implode( ', ', $permissions );
wfDebug( "Checking for $permissionlist due to $field match on $bitfield\n" );
}
$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;
}
/**
}
return true;
}
/**
- * @param stdClass $row
Row
+ * @param stdClass $row
* @param int $field One of DELETED_* bitfield constants
* @return bool
*/
* @param int $field One of DELETED_* bitfield constants
* @return bool
*/