From: umherirrender Date: Sat, 12 May 2012 13:56:31 +0000 (+0200) Subject: set tidy = true for action=purge&forcelinkupdate= X-Git-Tag: 1.31.0-rc.0~23630^2 X-Git-Url: https://git.cyclocoop.org/%28%28?a=commitdiff_plain;h=223abdc2cab67ad6465d7fc0917470acc9f6a0e6;p=lhc%2Fweb%2Fwiklou.git set tidy = true for action=purge&forcelinkupdate= Change-Id: Ibf17c312193629b64c3d5184b8fb26387862dd0d --- diff --git a/includes/api/ApiPurge.php b/includes/api/ApiPurge.php index 9e9320fb6c..b803fd4c7a 100644 --- a/includes/api/ApiPurge.php +++ b/includes/api/ApiPurge.php @@ -89,6 +89,7 @@ class ApiPurge extends ApiBase { global $wgParser, $wgEnableParserCache; $popts = ParserOptions::newFromContext( $this->getContext() ); + $popts->setTidy( true ); $p_result = $wgParser->parse( $page->getRawText(), $title, $popts, true, true, $page->getLatest() );