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
===================================================================
--- 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 = '';

Status & tagging log

  • 01:58, 13 October 2010 ^demon (Talk | contribs) changed the status of r12844 [removed: new added: old]
Personal tools
Namespaces
Variants
Views
Actions
Site
Support
Download
Development
Communication
Toolbox