From ce7eaa15dcb28f38e07f92500e78bf9a49985808 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Sun, 26 Jun 2005 09:33:51 +0000 Subject: [PATCH] * (bug 2520) Don't show enotif options when disabled --- RELEASE-NOTES | 1 + includes/SpecialPreferences.php | 9 ++++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 3df597af26..0a7d90a0a9 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -344,6 +344,7 @@ Various bugfixes, small features, and a few experimental things: * Fix for interwiki link regression * Printable link shorter in monobook * Experimental Latin-1-and-replication-friendly upgrader script +* (bug 2520) Don't show enotif options when disabled === Caveats === diff --git a/includes/SpecialPreferences.php b/includes/SpecialPreferences.php index 86da0b4b2b..bf6c200e57 100644 --- a/includes/SpecialPreferences.php +++ b/includes/SpecialPreferences.php @@ -420,7 +420,14 @@ class PreferencesForm { $titleObj = Title::makeTitle( NS_SPECIAL, 'Preferences' ); $action = $titleObj->escapeLocalURL(); - + + # Pre-expire some toggles so they won't show if disabled + $this->mUsedToggles[ 'shownumberswatching' ] = true; + $this->mUsedToggles[ 'showupdated' ] = true; + $this->mUsedToggles[ 'enotifwatchlistpages' ] = true; + $this->mUsedToggles[ 'enotifusertalkpages' ] = true; + $this->mUsedToggles[ 'enotifminoredits' ] = true; + $this->mUsedToggles[ 'enotifrevealaddr' ] = true; # Enotif # -- 2.20.1