* (bug 25135) add "normalized" to action=parse
* (bug 26460) Add support for listing category members by category pageid
* (bug 26482) add a imimages param to prop=images
+* (bug 26498) allow LinksUpdate with API
=== Languages updated in 1.18 ===
$article = MediaWiki::articleFromTitle( $title );
$article->doPurge(); // Directly purge and skip the UI part of purge().
$r['purged'] = '';
+
+ if( $params['forcelinkupdate'] ) {
+ if ( !$wgUser->pingLimiter() ) {
+ global $wgParser, $wgEnableParserCache;
+ $popts = new ParserOptions();
+ $p_result = $wgParser->parse( $article->getContent(), $title, $popts );
+
+ # Update the links tables
+ $u = new LinksUpdate( $title, $p_result );
+ $u->doUpdate();
+
+ $r['linkupdate'] = '';
+
+ if ( $wgEnableParserCache ) {
+ $pcache = ParserCache::singleton();
+ $pcache->save( $p_result, $article, $popts );
+ }
+ }
+ }
+
$result[] = $r;
}
$this->getResult()->setIndexedTagName( $result, 'page' );
'titles' => array(
ApiBase::PARAM_ISMULTI => true,
ApiBase::PARAM_REQUIRED => true
- )
+ ),
+ 'forcelinkupdate' => false,
);
}
public function getParamDescription() {
return array(
'titles' => 'A list of titles',
+ 'forcelinkupdate' => 'Update the links tables',
);
}