From: Erik Moeller Date: Tue, 29 Jul 2003 01:11:09 +0000 (+0000) Subject: Don't show "__NOTOC__" text when user has toc disabled X-Git-Tag: 1.1.0~375 X-Git-Url: http://git.cyclocoop.org/%24action?a=commitdiff_plain;h=adcd2c34c20a4cfa6085fdc8ff51b7a2cbcc57b4;p=lhc%2Fweb%2Fwiklou.git Don't show "__NOTOC__" text when user has toc disabled --- 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; }