Replace DataUpdate::doUpdates() callers in maintenance/

Change-Id: I51df9f419d6ea1e822fd0eef8c5dc4c43f9855e1
This commit is contained in:
Aaron Schulz 2016-09-01 21:30:34 -07:00
parent ce504f2d19
commit b8b01aa589
2 changed files with 5 additions and 4 deletions

View file

@ -607,8 +607,8 @@ class NamespaceConflictChecker extends Maintenance {
* accidentally introduce an assumption of title validity to the code we
* are calling.
*/
$updates = [ new LinksDeletionUpdate( $wikiPage ) ];
DataUpdate::runUpdates( $updates );
DeferredUpdates::addUpdate( new LinksDeletionUpdate( $wikiPage ) );
DeferredUpdates::doUpdates();
return true;
}

View file

@ -237,8 +237,9 @@ class RefreshLinks extends Maintenance {
return;
}
$updates = $content->getSecondaryDataUpdates( $page->getTitle() );
DataUpdate::runUpdates( $updates );
foreach ( $content->getSecondaryDataUpdates( $page->getTitle() ) as $update ) {
DeferredUpdates::addUpdate( $update );
}
}
/**