Change-Id: I51df9f419d6ea1e822fd0eef8c5dc4c43f9855e1
* 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;
}
return;
}
- $updates = $content->getSecondaryDataUpdates( $page->getTitle() );
- DataUpdate::runUpdates( $updates );
+ foreach ( $content->getSecondaryDataUpdates( $page->getTitle() ) as $update ) {
+ DeferredUpdates::addUpdate( $update );
+ }
}
/**