Index: trunk/extensions/SemanticMediaWiki/includes/SMW_QueryPrinter.php |
— | — | @@ -153,7 +153,9 @@ |
154 | 154 | } else { |
155 | 155 | global $wgTitle; |
156 | 156 | $popt = new ParserOptions(); |
157 | | - $pout = $wgParser->parse($result, $wgTitle, $popt); |
| 157 | + $popt->setEditSection(false); |
| 158 | + $pout = $wgParser->parse($result . '__NOTOC__', $wgTitle, $popt); |
| 159 | + /// NOTE: as of MW 1.14SVN, there is apparently no better way to hide the TOC |
158 | 160 | $result = $pout->getText(); |
159 | 161 | } |
160 | 162 | } else { |