[Mediawiki-l] disabling editsection does not work (MW 1.71)

HeinzJ h-j.luecking at t-online.de
Sat Oct 7 10:25:22 UTC 2006


HeinzJ schrieb:
> In Mediawiki 1.71 in LocalSettings.php i set
> 
>    $wgDefaultUserOptions['editsection'] = 0;
> 
> But anonymos users still see [edit].
> 
> I got it worked in an older mediawiki-version.
> Are there still further things to do. Dit there change something in 
> Mediawiki 1.71
> 
> 
> Thx, HeinJ

Found a solution.

Parser.php function initialiseFromUser has to be changed from

    $this->mEditSection = $user->getOption( 'editsection' );

to

    if ($user->getID()) {
       $this->mEditSection = $user->getOption( 'editsection' );
    } else {
       $this->mEditSection = 0;
    }





More information about the MediaWiki-l mailing list