MediaWiki r12844 - Code Review

Jump to: navigation, search
Repository:MediaWiki
Revision:r12843‎ | r12844 (on ViewVC)‎ | r12845 >
Date:20:57, 23 January 2006
Author:midom
Status:old
Tags:
Comment:
allow to enable full tidy
Modified paths:

Diff [purge]

Index: trunk/phase3/includes/Parser.php
@@ -176,7 +176,7 @@
177177 * to internalParse() which does all the real work.
178178 */
179179
180 - global $wgUseTidy, $wgContLang;
 180+ global $wgUseTidy, $wgAlwaysUseTidy, $wgContLang;
181181 $fname = 'Parser::parse';
182182 wfProfileIn( $fname );
183183
@@ -237,7 +237,7 @@
238238
239239 $text = Sanitizer::normalizeCharReferences( $text );
240240
241 - if ($wgUseTidy and $this->mOptions->mTidy) {
 241+ if (($wgUseTidy and $this->mOptions->mTidy) or $wgAlwaysUseTidy) {
242242 $text = Parser::tidy($text);
243243 }
244244
Index: trunk/phase3/includes/DefaultSettings.php
@@ -1400,6 +1400,7 @@
14011401 * 'extension=tidy.so' to php.ini.
14021402 */
14031403 $wgUseTidy = false;
 1404+$wgAlwaysUseTidy = false;
14041405 $wgTidyBin = 'tidy';
14051406 $wgTidyConf = $IP.'/extensions/tidy/tidy.conf';
14061407 $wgTidyOpts = '';

Status & tagging log

  • 01:58, 13 October 2010 ^demon (talk | contribs) changed the status of r12844 [removed: new added: old]