- // @TODO Use PermissionManager::isBlockedFrom() instead.
- if ( $user->getBlock() ) {
- $this->output( $user->getName() . " was blocked! Aborting.\n" );
- break;
+ if ( $permissionManager->isBlockedFrom( $user, $title ) ) {
+ $this->output(
+ "{$user->getName()} is blocked from {$title->getPrefixedText()}! skipping.\n"
+ );
+ $skipped++;
+ continue;