$esr=$wgUser->getID() && $wgUser->getOption( "editsectiononrightclick" );
}
+ # Inhibit editsection links if requested in the page
+ if ($es) {
+ $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
$mw =& MagicWord::get( MAG_NOTOC );
# ID CASE SYNONYMS
MAG_REDIRECT => array( 0, "#redirect" ),
MAG_NOTOC => array( 0, "__NOTOC__" ),
+ MAG_NOEDITSECTION => array( 0, "__NOEDITSECTION__" ),
MAG_START => array( 0, "__START__" ),
MAG_CURRENTMONTH => array( 1, "{{CURRENTMONTH}}" ),
MAG_CURRENTMONTHNAME => array( 1, "{{CURRENTMONTHNAME}}" ),