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 "Type hint against LinkTarget in WatchedItemStore"
[lhc/web/wiklou.git]
/
maintenance
/
includes
/
DeleteLocalPasswords.php
diff --git
a/maintenance/includes/DeleteLocalPasswords.php
b/maintenance/includes/DeleteLocalPasswords.php
index
747319d
..
c9b3b66
100644
(file)
--- a/
maintenance/includes/DeleteLocalPasswords.php
+++ b/
maintenance/includes/DeleteLocalPasswords.php
@@
-23,6
+23,7
@@
use MediaWiki\MediaWikiServices;
use Wikimedia\Rdbms\IDatabase;
use MediaWiki\MediaWikiServices;
use Wikimedia\Rdbms\IDatabase;
+use Wikimedia\Rdbms\IMaintainableDatabase;
require_once __DIR__ . '/../Maintenance.php';
require_once __DIR__ . '/../Maintenance.php';
@@
-49,7
+50,7
@@
class DeleteLocalPasswords extends Maintenance {
public function __construct() {
parent::__construct();
public function __construct() {
parent::__construct();
- $this->
mDescription = "Deletes local password for users."
;
+ $this->
addDescription( "Deletes local password for users." )
;
$this->setBatchSize( 1000 );
$this->addOption( 'user', 'If specified, only checks the given user', false, true );
$this->setBatchSize( 1000 );
$this->addOption( 'user', 'If specified, only checks the given user', false, true );
@@
-105,6
+106,7
@@
ERROR
/**
* Get the master DB handle for the current user batch. This is provided for the benefit
* of authentication extensions which subclass this and work with wiki farms.
/**
* Get the master DB handle for the current user batch. This is provided for the benefit
* of authentication extensions which subclass this and work with wiki farms.
+ * @return IMaintainableDatabase
*/
protected function getUserDB() {
return $this->getDB( DB_MASTER );
*/
protected function getUserDB() {
return $this->getDB( DB_MASTER );