merged latest master
[lhc/web/wiklou.git] / includes / api / ApiPurge.php
index b803fd4..c01af27 100644 (file)
@@ -91,11 +91,11 @@ class ApiPurge extends ApiBase {
                                        $popts = ParserOptions::newFromContext( $this->getContext() );
                                        $popts->setTidy( true );
                                        $p_result = $wgParser->parse( $page->getRawText(), $title, $popts,
-                                               true, true, $page->getLatest() );
+                                               true, true, $page->getLatest() ); #FIXME: content!
 
                                        # Update the links tables
-                                       $u = new LinksUpdate( $title, $p_result );
-                                       $u->doUpdate();
+                    $updates = $p_result->getSecondaryDataUpdates( $title );
+                    SecondaryDataUpdate::runUpdates( $updates );
 
                                        $r['linkupdate'] = '';