From: Aaron Schulz Date: Fri, 2 Sep 2016 04:30:34 +0000 (-0700) Subject: Replace DataUpdate::doUpdates() callers in maintenance/ X-Git-Tag: 1.31.0-rc.0~5790^2 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_aide%28?a=commitdiff_plain;h=b8b01aa589ce;p=lhc%2Fweb%2Fwiklou.git Replace DataUpdate::doUpdates() callers in maintenance/ Change-Id: I51df9f419d6ea1e822fd0eef8c5dc4c43f9855e1 --- diff --git a/maintenance/namespaceDupes.php b/maintenance/namespaceDupes.php index d6a9ba81fd..506bc9c2b9 100644 --- a/maintenance/namespaceDupes.php +++ b/maintenance/namespaceDupes.php @@ -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; } diff --git a/maintenance/refreshLinks.php b/maintenance/refreshLinks.php index e91a3d31c7..95a49d6c2a 100644 --- a/maintenance/refreshLinks.php +++ b/maintenance/refreshLinks.php @@ -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 ); + } } /**