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
Convert Special:Undelete search form to use OOUI
[lhc/web/wiklou.git]
/
maintenance
/
resetUserTokens.php
diff --git
a/maintenance/resetUserTokens.php
b/maintenance/resetUserTokens.php
index
837f304
..
481da98
100644
(file)
--- a/
maintenance/resetUserTokens.php
+++ b/
maintenance/resetUserTokens.php
@@
-30,12
+30,14
@@
require_once __DIR__ . '/Maintenance.php';
* Maintenance script to reset the user_token for all users on the wiki.
*
* @ingroup Maintenance
* Maintenance script to reset the user_token for all users on the wiki.
*
* @ingroup Maintenance
+ * @deprecated since 1.27, use $wgAuthenticationTokenVersion instead.
*/
class ResetUserTokens extends Maintenance {
public function __construct() {
parent::__construct();
$this->addDescription(
*/
class ResetUserTokens extends Maintenance {
public function __construct() {
parent::__construct();
$this->addDescription(
- 'Reset the user_token of all users on the wiki. Note that this may log some of them out.'
+ "Reset the user_token of all users on the wiki. Note that this may log some of them out.\n"
+ . "Deprecated, use \$wgAuthenticationTokenVersion instead."
);
$this->addOption( 'nowarn', "Hides the 5 seconds warning", false, false );
$this->addOption(
);
$this->addOption( 'nowarn', "Hides the 5 seconds warning", false, false );
$this->addOption(
@@
-65,8
+67,9
@@
class ResetUserTokens extends Maintenance {
wfCountDown( 5 );
}
wfCountDown( 5 );
}
+ // We list user by user_id from one of the replica DBs
// We list user by user_id from one of the slave database
// We list user by user_id from one of the slave database
- $dbr = $this->getDB( DB_
SLAVE
);
+ $dbr = $this->getDB( DB_
REPLICA
);
$where = [];
if ( $this->nullsOnly ) {
$where = [];
if ( $this->nullsOnly ) {