From: umherirrender Date: Fri, 22 Jun 2012 22:25:33 +0000 (+0200) Subject: Use canonical parser option for linkupdate in api purge X-Git-Tag: 1.31.0-rc.0~23246^2 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_aide%28?a=commitdiff_plain;h=f1f1c2e794bfb1d65b3ec78f80e8b7635cffed51;p=lhc%2Fweb%2Fwiklou.git Use canonical parser option for linkupdate in api purge This patch makes sure, that the links table updated against the content language. This also enabled the limit report, which than is also stored in the parser cache along with the html. Change-Id: I2a0b09d7250813809f1b2a8cba3e4f53a6686002 --- diff --git a/includes/api/ApiPurge.php b/includes/api/ApiPurge.php index e27068d156..d9acba4a4e 100644 --- a/includes/api/ApiPurge.php +++ b/includes/api/ApiPurge.php @@ -88,8 +88,7 @@ class ApiPurge extends ApiBase { if ( !$user->pingLimiter() ) { global $wgParser, $wgEnableParserCache; - $popts = ParserOptions::newFromContext( $this->getContext() ); - $popts->setTidy( true ); + $popts = $page->makeParserOptions( 'canonical' ); $p_result = $wgParser->parse( $page->getRawText(), $title, $popts, true, true, $page->getLatest() );