Last modified: 2010-05-15 15:37:29 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.
Applied to HEAD.