Replace DataUpdate::doUpdates() callers in maintenance/
authorAaron Schulz <aschulz@wikimedia.org>
Fri, 2 Sep 2016 04:30:34 +0000 (21:30 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Fri, 2 Sep 2016 04:30:34 +0000 (21:30 -0700)
Change-Id: I51df9f419d6ea1e822fd0eef8c5dc4c43f9855e1

maintenance/namespaceDupes.php
maintenance/refreshLinks.php

index d6a9ba8..506bc9c 100644 (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;
        }
index e91a3d3..95a49d6 100644 (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 );
+               }
        }
 
        /**