Merge "refreshLinks: Queue non-recursive updates"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Thu, 2 Mar 2017 20:14:27 +0000 (20:14 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Thu, 2 Mar 2017 20:14:27 +0000 (20:14 +0000)
maintenance/refreshLinks.php

index fb24a1d..06fcbaf 100644 (file)
@@ -272,7 +272,9 @@ class RefreshLinks extends Maintenance {
                        return;
                }
 
-               foreach ( $content->getSecondaryDataUpdates( $page->getTitle() ) as $update ) {
+               $updates = $content->getSecondaryDataUpdates(
+                       $page->getTitle(), /* $old = */ null, /* $recursive = */ false );
+               foreach ( $updates as $update ) {
                        DeferredUpdates::addUpdate( $update );
                }
        }