mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-27 15:30:42 +00:00
Merge "maintenance: Remove reference to cleanupUsersWithNoId.php"
This commit is contained in:
commit
683634482e
|
@ -138,16 +138,13 @@ class MigrateActorsAF extends LoggedUpdateMaintenance {
|
|||
foreach ( $rows as $index => $row ) {
|
||||
$keep[$index] = true;
|
||||
if ( $row->actor_id === null ) {
|
||||
// All registered users should have an actor_id already. So
|
||||
// if we have a usable name here, it means they didn't run
|
||||
// maintenance/cleanupUsersWithNoId.php
|
||||
$name = $row->$nameField;
|
||||
if ( $userNameUtils->isUsable( $name ) ) {
|
||||
if ( !isset( $complainedAboutUsers[$name] ) ) {
|
||||
$complainedAboutUsers[$name] = true;
|
||||
$this->error(
|
||||
"User name \"$name\" is usable, cannot create an anonymous actor for it."
|
||||
. " Run maintenance/cleanupUsersWithNoId.php to fix this situation.\n"
|
||||
. " Your database has likely been corrupted, and may require manual intervention.\n"
|
||||
);
|
||||
}
|
||||
unset( $keep[$index] );
|
||||
|
|
Loading…
Reference in a new issue