Add unit test for bug 32888
[lhc/web/wiklou.git] / maintenance / migrateUserGroup.php
index 4dfdad1..771ed94 100644 (file)
@@ -60,11 +60,11 @@ class MigrateUserGroup extends Maintenance {
                        $dbw->commit();
                        $blockStart += $this->mBatchSize;
                        $blockEnd += $this->mBatchSize;
-                       wfWaitForSlaves( 5 );
+                       wfWaitForSlaves();
                }
                $this->output( "Done! $count user(s) in group '$oldGroup' are now in '$newGroup' instead.\n" );
        }
 }
 
 $maintClass = "MigrateUserGroup";
-require_once( DO_MAINTENANCE );
+require_once( RUN_MAINTENANCE_IF_MAIN );