Move loading of mediawiki.toc from Parser to Skin
[lhc/web/wiklou.git] / includes / skins / Skin.php
index 2cd28b4..1836661 100644 (file)
@@ -196,6 +196,10 @@ abstract class Skin extends ContextSource {
                        $modules['content'][] = 'jquery.makeCollapsible';
                }
 
+               if ( $out->isTOCEnabled() ) {
+                       $modules['content'][] = 'mediawiki.toc';
+               }
+
                // Add various resources if required
                if ( $wgUseAjax && $wgEnableAPI ) {
                        if ( $wgEnableWriteAPI && $user->isLoggedIn()