Merge "Emit deprecation warnings from Article::fetchContent"
[lhc/web/wiklou.git] / maintenance / namespaceDupes.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;
        }