From 50878030e967a33cc821a40c523f6ed675c7dd13 Mon Sep 17 00:00:00 2001 From: "Mr. E23" Date: Tue, 6 Jan 2004 00:47:52 +0000 Subject: [PATCH] Fixed bug causing magic word MAG_NOEDITSECTION to be visible in plain text if user had section editing turned off --- includes/OutputPage.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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 -- 2.20.1