From: Mr. E23 Date: Tue, 6 Jan 2004 00:47:52 +0000 (+0000) Subject: Fixed bug causing magic word MAG_NOEDITSECTION to be visible in plain text if user... X-Git-Tag: 1.3.0beta1~1191 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/password.php?a=commitdiff_plain;h=50878030e967a33cc821a40c523f6ed675c7dd13;p=lhc%2Fweb%2Fwiklou.git Fixed bug causing magic word MAG_NOEDITSECTION to be visible in plain text if user had section editing turned off --- diff --git a/includes/OutputPage.php b/includes/OutputPage.php index 5dd58a629d..6e3fce9e26 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -1382,11 +1382,9 @@ $t[] = "" ; } # Inhibit editsection links if requested in the page - if ($es) { - $esw=& MagicWord::get(MAG_NOEDITSECTION); - if ($esw->matchAndRemove( $text )) { - $es=0; - } + $esw =& MagicWord::get( MAG_NOEDITSECTION ); + if ($esw->matchAndRemove( $text )) { + $es=0; } # if the string __NOTOC__ (not case-sensitive) occurs in the HTML, # do not add TOC