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 "Add 'WikiPageFactory' hook"
[lhc/web/wiklou.git]
/
maintenance
/
userOptions.inc
diff --git
a/maintenance/userOptions.inc
b/maintenance/userOptions.inc
index
f4ffbd0
..
c657c03
100644
(file)
--- a/
maintenance/userOptions.inc
+++ b/
maintenance/userOptions.inc
@@
-22,8
+22,8
@@
*/
// Options we will use
*/
// Options we will use
-$options =
array( 'list', 'nowarn', 'quiet', 'usage', 'dry' )
;
-$optionsWithArgs =
array( 'old', 'new' )
;
+$options =
[ 'list', 'nowarn', 'quiet', 'usage', 'dry' ]
;
+$optionsWithArgs =
[ 'old', 'new' ]
;
require_once __DIR__ . '/commandLine.inc';
require_once __DIR__ . '/commandLine.inc';
@@
-137,14
+137,14
@@
class UserOptions {
* List options usage
*/
private function USAGER() {
* List options usage
*/
private function USAGER() {
- $ret =
array()
;
+ $ret =
[]
;
$defaultOptions = User::getDefaultOptions();
$defaultOptions = User::getDefaultOptions();
- // We list user by user_id from one of the
slave database
- $dbr = wfGetDB( DB_
SLAVE
);
+ // We list user by user_id from one of the
replica DBs
+ $dbr = wfGetDB( DB_
REPLICA
);
$result = $dbr->select( 'user',
$result = $dbr->select( 'user',
-
array( 'user_id' )
,
-
array()
,
+
[ 'user_id' ]
,
+
[]
,
__METHOD__
);
__METHOD__
);
@@
-194,11
+194,11
@@
class UserOptions {
private function CHANGER() {
$this->warn();
private function CHANGER() {
$this->warn();
- // We list user by user_id from one of the
slave database
- $dbr = wfGetDB( DB_
SLAVE
);
+ // We list user by user_id from one of the
replica DBs
+ $dbr = wfGetDB( DB_
REPLICA
);
$result = $dbr->select( 'user',
$result = $dbr->select( 'user',
-
array( 'user_id' )
,
-
array()
,
+
[ 'user_id' ]
,
+
[]
,
__METHOD__
);
__METHOD__
);
@@
-238,7
+238,7
@@
class UserOptions {
*/
public static function getDefaultOptionsNames() {
$def = User::getDefaultOptions();
*/
public static function getDefaultOptionsNames() {
$def = User::getDefaultOptions();
- $ret =
array()
;
+ $ret =
[]
;
foreach ( $def as $optname => $defaultValue ) {
array_push( $ret, $optname );
}
foreach ( $def as $optname => $defaultValue ) {
array_push( $ret, $optname );
}