If $wgEnotifMinorEdits=false, the enotifminoredits pref does nothing, so put it in...
authorBrian Wolff <bawolff@users.mediawiki.org>
Sun, 6 Mar 2011 04:13:46 +0000 (04:13 +0000)
committerBrian Wolff <bawolff@users.mediawiki.org>
Sun, 6 Mar 2011 04:13:46 +0000 (04:13 +0000)
Its confusing to have it as an option, if its disabled, especially since there is no indication to the
user that it is disabled.

RELEASE-NOTES
includes/Setup.php

index aeeb169..374917b 100644 (file)
@@ -162,6 +162,7 @@ PHP if you have not done so prior to upgrading MediaWiki.
 * Trim the form field for uploading by url to remove extra spaces which could
   cause confusing error messages.
 * (bug 27854) Http::isValidURI is way too lax.
+* Do not show enotifminoredits preference, if disabled by $wgEnotifMinorEdits.
 
 === API changes in 1.18 ===
 * (bug 26339) Throw warning when truncating an overlarge API result
index 7dfe94b..9a217ed 100644 (file)
@@ -238,6 +238,11 @@ if ( !$wgAllowUserSkin ) {
        $wgHiddenPrefs[] = 'skin';
 }
 
+# Doesn't make sense to have if disabled.
+if ( !$wgEnotifMinorEdits ) {
+       $wgHiddenPrefs[] = 'enotifminoredits';
+}
+
 if ( !$wgHtml5Version && $wgHtml5 && $wgAllowRdfaAttributes ) {
        # see http://www.w3.org/TR/rdfa-in-html/#document-conformance
        if ( $wgMimeType == 'application/xhtml+xml' ) {