From f1f1c2e794bfb1d65b3ec78f80e8b7635cffed51 Mon Sep 17 00:00:00 2001 From: umherirrender Date: Sat, 23 Jun 2012 00:25:33 +0200 Subject: [PATCH] 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 --- includes/api/ApiPurge.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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() ); -- 2.20.1