Fixed bug causing magic word MAG_NOEDITSECTION to be visible in plain text if user...
authorMr. E23 <e23@users.mediawiki.org>
Tue, 6 Jan 2004 00:47:52 +0000 (00:47 +0000)
committerMr. E23 <e23@users.mediawiki.org>
Tue, 6 Jan 2004 00:47:52 +0000 (00:47 +0000)
includes/OutputPage.php

index 5dd58a6..6e3fce9 100644 (file)
@@ -1382,11 +1382,9 @@ $t[] = "</table>" ;
                }
 
                # 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