For MediaWiki (recent comments | status changes | tags | authors | states | release notes | statistics)
Index: trunk/phase3/includes/Parser.php =================================================================== --- trunk/phase3/includes/Parser.php (revision 12843) +++ trunk/phase3/includes/Parser.php (revision 12844) @@ -176,7 +176,7 @@ * to internalParse() which does all the real work. */ - global $wgUseTidy, $wgContLang; + global $wgUseTidy, $wgAlwaysUseTidy, $wgContLang; $fname = 'Parser::parse'; wfProfileIn( $fname ); @@ -237,7 +237,7 @@ $text = Sanitizer::normalizeCharReferences( $text ); - if ($wgUseTidy and $this->mOptions->mTidy) { + if (($wgUseTidy and $this->mOptions->mTidy) or $wgAlwaysUseTidy) { $text = Parser::tidy($text); } Index: trunk/phase3/includes/DefaultSettings.php =================================================================== --- trunk/phase3/includes/DefaultSettings.php (revision 12843) +++ trunk/phase3/includes/DefaultSettings.php (revision 12844) @@ -1400,6 +1400,7 @@ * 'extension=tidy.so' to php.ini. */ $wgUseTidy = false; +$wgAlwaysUseTidy = false; $wgTidyBin = 'tidy'; $wgTidyConf = $IP.'/extensions/tidy/tidy.conf'; $wgTidyOpts = '';