Merge "Generalizing LinksUpdate to allow extensions to add arbitrary update handlers."
[lhc/web/wiklou.git] / includes / api / ApiPurge.php
index b803fd4..8ef9cbc 100644 (file)
@@ -94,8 +94,8 @@ class ApiPurge extends ApiBase {
                                                true, true, $page->getLatest() );
 
                                        # Update the links tables
-                                       $u = new LinksUpdate( $title, $p_result );
-                                       $u->doUpdate();
+                                       $updates = $p_result->getSecondaryDataUpdates( $title );
+                                       DataUpdate::runUpdates( $updates );
 
                                        $r['linkupdate'] = '';