r36367 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r36366‎ | r36367 | r36368 >
Date:04:52, 17 June 2008
Author:nad
Status:old
Tags:
Comment:
1.0.5 - fix $wgTidy bug
Modified paths:
  • /trunk/extensions/TreeAndMenu/TreeAndMenu.php (modified) (history)

Diff [purge]

Index: trunk/extensions/TreeAndMenu/TreeAndMenu.php
@@ -14,7 +14,7 @@
1515
1616 if (!defined('MEDIAWIKI')) die('Not an entry point.');
1717
18 -define('TREEANDMENU_VERSION','1.0.4, 2008-06-08');
 18+define('TREEANDMENU_VERSION','1.0.5, 2008-06-15');
1919
2020 # Set any unset images to default titles
2121 if (!isset($wgTreeViewImages) || !is_array($wgTreeViewImages)) $wgTreeViewImages = array();
@@ -107,7 +107,9 @@
108108 # If root, parse as wikitext
109109 if (isset($args['root'])) {
110110 $p = clone $parser;
111 - $html = $p->parse($args['root'], $parser->mTitle, $parser->mOptions, false, true)->getText();
 111+ $o = clone $parser->mOptions;
 112+ $o->mTidy = $o->mEnableLimitReport = false;
 113+ $html = $p->parse($args['root'], $parser->mTitle, $o, false, true)->getText();
112114 $args['root'] = addslashes($html);
113115 }
114116

Status & tagging log