Last modified: 2010-05-15 15:56:54 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T7651, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 5651 - Section editing links can't be disabled
Section editing links can't be disabled
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Page editing (Other open bugs)
1.6.x
PC All
: Normal normal with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-04-19 17:34 UTC by Invalid Account
Modified: 2010-05-15 15:56 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Invalid Account 2006-04-19 17:34:38 UTC
In Parser.php:
if( !$this->mTitle->userCanEdit() ) {
    $showEditLink = 0;
} else {
    $showEditLink = $this->mOptions->getEditSection();
}
_________________

The code above is not supposed to show edit section links if the user doesn't
have the edit permission but it does anyway.

In DefaultSettings.php the following suggestion appears in the comments:
 * For instance, to disable section editing links:
 *  $wgDefaultUserOptions ['editsection'] = 0;

But that doesn't work either.

Moreover, in Parser.php below:
$this->mEditSection = true;
_____________
This
Comment 1 Rob Church 2006-05-14 16:42:43 UTC
Fixed in SVN trunk, r14220.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links