Don't show "__NOTOC__" text when user has toc disabled
authorErik Moeller <erik@users.mediawiki.org>
Tue, 29 Jul 2003 01:11:09 +0000 (01:11 +0000)
committerErik Moeller <erik@users.mediawiki.org>
Tue, 29 Jul 2003 01:11:09 +0000 (01:11 +0000)
includes/OutputPage.php

index a1518f5..a75865f 100644 (file)
@@ -1358,7 +1358,7 @@ return $r ;
                }
                # if the string __NOTOC__ (not case-sensitive) occurs in the HTML, do not 
                # add TOC
-               if($st && preg_match("/__NOTOC__/i",$text)) { 
+               if(preg_match("/__NOTOC__/i",$text)) { 
                        $text=preg_replace("/__NOTOC__/i","",$text);
                        $st=0; 
                }