Move loading of mediawiki.toc from Parser to Skin
authorTimo Tijhof <krinklemail@gmail.com>
Sat, 20 May 2017 13:39:40 +0000 (15:39 +0200)
committerTimo Tijhof <krinklemail@gmail.com>
Sun, 21 May 2017 17:06:43 +0000 (19:06 +0200)
commitc7e00974c7eb1cd33783f4f0354de766e70ce3c1
tree231435b66b9b3fbaa181aa90360ecfcb9874b1af
parent90c95fc7f290fac1c90e9ce8608e414dec4d7e52
Move loading of mediawiki.toc from Parser to Skin

This was the only addModules() call ever to be inside Parser.
Introduced in a54ef1a203d. Prior to that, mediawiki.toc had always been loaded
by OutputPage (via mediawiki.util; and before that, via wikibits).

This patch restores that, and also fixes T130632 by making OutputPage get
it from the Skin, instead of hardcoding this somewhere in addParserOutput().

* Remove deprecated method OutputPage::enableTOC().
* Move mEnableTOC to addParserOutputText().

Bug: T130632
Change-Id: Iaad84d241a4c4348c712ac1087a664b8c9c46da4
includes/OutputPage.php
includes/parser/Parser.php
includes/skins/Skin.php