Index: trunk/extensions/TreeAndMenu/TreeAndMenu.php |
— | — | @@ -14,7 +14,7 @@ |
15 | 15 | |
16 | 16 | if (!defined('MEDIAWIKI')) die('Not an entry point.'); |
17 | 17 | |
18 | | -define('TREEANDMENU_VERSION','1.0.4, 2008-06-08'); |
| 18 | +define('TREEANDMENU_VERSION','1.0.5, 2008-06-15'); |
19 | 19 | |
20 | 20 | # Set any unset images to default titles |
21 | 21 | if (!isset($wgTreeViewImages) || !is_array($wgTreeViewImages)) $wgTreeViewImages = array(); |
— | — | @@ -107,7 +107,9 @@ |
108 | 108 | # If root, parse as wikitext |
109 | 109 | if (isset($args['root'])) { |
110 | 110 | $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(); |
112 | 114 | $args['root'] = addslashes($html); |
113 | 115 | } |
114 | 116 | |