How to reproduce this bug:
- I used a clean install of MediaWiki 1.6.6
- I set "$wgMaxTocLevel = 3;" in LocalSettings.php
- I create a test page:
- I click on Preview, or Save (the result is the same)
- The TOC is not rendered as it should:
Roughly, there are too much "</ul></li>" generated.
It probably comes from improper calls to function tocUnindent()
(includes/Linker.php) from parser (includes/Parser.php).
This was my first bug report, I hope it is accurate.
Thanks for your excellent work,