* Fix typo in Linker.php
[lhc/web/wiklou.git] / includes / parser / Parser.php
index 768c9cb..5a674c5 100644 (file)
@@ -3734,11 +3734,11 @@ class Parser
                                $toc .= $sk->tocUnindent( $prevtoclevel - 1 );
                        }
                        $toc = $sk->tocList( $toc );
+                       $this->mOutput->setTOCHTML( $toc );
                }
                
                if ( $isMain ) {
                        $this->mOutput->setSections( $tocraw );
-                       $this->mOutput->setTOCHTML( $toc );
                }
 
                # split up and insert constructed headlines