Merge branch 'master' into Wikidata
[lhc/web/wiklou.git] / maintenance / refreshLinks.php
index 7abbc90..dd8c8a7 100644 (file)
@@ -221,6 +221,12 @@ class RefreshLinks extends Maintenance {
 
                $options = new ParserOptions;
                $parserOutput = $wgParser->parse( $revision->getText(), $title, $options, true, true, $revision->getId() );
+
+        $updates = $parserOutput->getLinksUpdateAndOtherUpdates( $title, false );
+        SecondaryDataUpdate::runUpdates( $updates );
+
+        $dbw->commit();
+        // TODO: We don't know what happens here.
                $update = new LinksUpdate( $title, $parserOutput, false );
                $update->doUpdate();
                $dbw->commit( __METHOD__ );