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
Merge "Wrap revision info and nav in a div for easy formatting in MobileFrontend"
[lhc/web/wiklou.git]
/
includes
/
user
/
UserNamePrefixSearch.php
diff --git
a/includes/user/UserNamePrefixSearch.php
b/includes/user/UserNamePrefixSearch.php
index
f565266
..
4a27a13
100644
(file)
--- a/
includes/user/UserNamePrefixSearch.php
+++ b/
includes/user/UserNamePrefixSearch.php
@@
-41,15
+41,15
@@
class UserNamePrefixSearch {
$dbr = wfGetDB( DB_SLAVE );
$prefix = $user ? $user->getName() : '';
$dbr = wfGetDB( DB_SLAVE );
$prefix = $user ? $user->getName() : '';
- $tables =
array( 'user' )
;
- $cond =
array( 'user_name ' . $dbr->buildLike( $prefix, $dbr->anyString() ) )
;
- $joinConds =
array()
;
+ $tables =
[ 'user' ]
;
+ $cond =
[ 'user_name ' . $dbr->buildLike( $prefix, $dbr->anyString() ) ]
;
+ $joinConds =
[]
;
// Filter out hidden user names
if ( $audience === 'public' || !$audience->isAllowed( 'hideuser' ) ) {
$tables[] = 'ipblocks';
// Filter out hidden user names
if ( $audience === 'public' || !$audience->isAllowed( 'hideuser' ) ) {
$tables[] = 'ipblocks';
- $cond['ipb_deleted'] =
array( 0, null )
;
- $joinConds['ipblocks'] =
array( 'LEFT JOIN', 'user_id=ipb_user' )
;
+ $cond['ipb_deleted'] =
[ 0, null ]
;
+ $joinConds['ipblocks'] =
[ 'LEFT JOIN', 'user_id=ipb_user' ]
;
}
$res = $dbr->selectFieldValues(
}
$res = $dbr->selectFieldValues(
@@
-57,14
+57,14
@@
class UserNamePrefixSearch {
'user_name',
$cond,
__METHOD__,
'user_name',
$cond,
__METHOD__,
- array(
+ [
'LIMIT' => $limit,
'ORDER BY' => 'user_name',
'OFFSET' => $offset
'LIMIT' => $limit,
'ORDER BY' => 'user_name',
'OFFSET' => $offset
-
)
,
+
]
,
$joinConds
);
$joinConds
);
- return $res === false ?
array()
: $res;
+ return $res === false ?
[]
: $res;
}
}
}
}