merged latest master
[lhc/web/wiklou.git] / includes / api / ApiPurge.php
index 0f7315f..c01af27 100644 (file)
@@ -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() ); #FIXME: content!