Replace DataUpdate::doUpdates() callers in maintenance/
Change-Id: I51df9f419d6ea1e822fd0eef8c5dc4c43f9855e1
This commit is contained in:
parent
ce504f2d19
commit
b8b01aa589
2 changed files with 5 additions and 4 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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 );
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue