From adcd2c34c20a4cfa6085fdc8ff51b7a2cbcc57b4 Mon Sep 17 00:00:00 2001 From: Erik Moeller Date: Tue, 29 Jul 2003 01:11:09 +0000 Subject: [PATCH] Don't show "__NOTOC__" text when user has toc disabled --- includes/OutputPage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/OutputPage.php b/includes/OutputPage.php index a1518f52ab..a75865ff15 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -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; } -- 2.20.1