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 "objectcache: improve BagOStuff arithmetic method signatures"
[lhc/web/wiklou.git]
/
maintenance
/
removeInvalidEmails.php
diff --git
a/maintenance/removeInvalidEmails.php
b/maintenance/removeInvalidEmails.php
index
1034005
..
bee8d69
100644
(file)
--- a/
maintenance/removeInvalidEmails.php
+++ b/
maintenance/removeInvalidEmails.php
@@
-21,6
+21,7
@@
class RemoveInvalidEmails extends Maintenance {
$this->addOption( 'commit', 'Whether to actually update the database', false, false );
$this->setBatchSize( 500 );
}
$this->addOption( 'commit', 'Whether to actually update the database', false, false );
$this->setBatchSize( 500 );
}
+
public function execute() {
$this->commit = $this->hasOption( 'commit' );
$dbr = $this->getDB( DB_REPLICA );
public function execute() {
$this->commit = $this->hasOption( 'commit' );
$dbr = $this->getDB( DB_REPLICA );
@@
-36,7
+37,7
@@
class RemoveInvalidEmails extends Maintenance {
'user_email_authenticated IS NULL'
],
__METHOD__,
'user_email_authenticated IS NULL'
],
__METHOD__,
- [ 'LIMIT' => $this->
mBatchSize
]
+ [ 'LIMIT' => $this->
getBatchSize()
]
);
$count = $rows->numRows();
$badIds = [];
);
$count = $rows->numRows();
$badIds = [];
@@
-74,5
+75,5
@@
class RemoveInvalidEmails extends Maintenance {
}
}
}
}
-$maintClass =
'RemoveInvalidEmails'
;
+$maintClass =
RemoveInvalidEmails::class
;
require_once RUN_MAINTENANCE_IF_MAIN;
require_once RUN_MAINTENANCE_IF_MAIN;