Last modified: 2010-05-15 15:37:29 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 T4520, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 2520 - SpecialPreferences page Misc issue (Misc shows options, which have no effect) incl. Patch
SpecialPreferences page Misc issue (Misc shows options, which have no effect)...
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
User preferences (Other open bugs)
1.5.x
All All
: High major with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
: patch
Depends on:
Blocks: 1002
  Show dependency treegraph
 
Reported: 2005-06-26 02:22 UTC by T. Gries
Modified: 2010-05-15 15:37 UTC (History)
0 users

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


Attachments

Description T. Gries 2005-06-26 02:22:12 UTC
Problem arises e.g. with Enotif global switches.

Currently, the User Preference page Misc lists per default all toggles, which
have not been shown (used before in the algorithmic flow) on the other pages.

This is a problem, when for example $wgEnotifWatchList is set to false. The
corresponding user option must _not_ be shown, because checking the box would
not have any effect (because it is fully disabled).

As a work-around, you can apply this patch

add these lines at the beginning of function mainPrefsForm():

$this->mUsedToggles[ 'shownumberswatching' ] = true;
$this->mUsedToggles[ 'rccurrevonly' ] = true;
$this->mUsedToggles[ 'showupdated' ] = true;
$this->mUsedToggles[ 'enotifwatchlistpages' ] = true;
$this->mUsedToggles[ 'enotifusertalkpages' ] = true;
$this->mUsedToggles[ 'enotifminoredits' ] = true;
$this->mUsedToggles[ 'enotifrevealaddr' ] = true;

Effect:
these toggles are marked as "used" (even when they are not shown), so that the
Misc page code doesn't show them at the end.
Comment 1 Brion Vibber 2005-06-26 09:35:41 UTC
Applied to HEAD.

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


Navigation
Links