From 4bdf6e63e50da874ac4db65096d6d3af7f50aa64 Mon Sep 17 00:00:00 2001 From: Jakub Klinkovský Date: Wed, 20 Jul 2016 10:27:19 +0200 Subject: LocalSettings: Hide "minordefault" and "forceeditsummary" user options There is little wrong in letting the users configure these settings, but setting "Mark all edits as minor by default" to true or "Prompt me when entering a blank edit summary" to false has bad impact on the quality of the wiki edits, because such users tend to ignore the fundamental rules [1] and there is nothing to remind it to them. Disabling these user preferences and forcing the default values according to this patch will decrease the effort of the Maintenance Team spent on guiding the editors and also generally increase the quality of user contributions. This will solve FS#46190 [2]. [1] https://wiki.archlinux.org/index.php/ArchWiki:Contributing#The_3_fundamental_rules [2] https://bugs.archlinux.org/task/46190 --- LocalSettings.archlinux.org.php | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'LocalSettings.archlinux.org.php') diff --git a/LocalSettings.archlinux.org.php b/LocalSettings.archlinux.org.php index e5249dc9..0d5d0d2c 100644 --- a/LocalSettings.archlinux.org.php +++ b/LocalSettings.archlinux.org.php @@ -199,14 +199,21 @@ $wgFooterIcons = array(); ## Access control settings ## +# disable anonymous editing $wgEmailConfirmToEdit = true; $wgDisableAnonTalk = true; $wgGroupPermissions['*']['edit'] = false; + +# extra rights for admins $wgGroupPermissions['sysop']['deleterevision'] = true; + +# disable uploads by normal users $wgGroupPermissions['user']['upload'] = false; $wgGroupPermissions['user']['reupload'] = false; $wgGroupPermissions['user']['reupload-shared'] = false; $wgGroupPermissions['autoconfirmed']['upload'] = false; + +# maintainers' rights $wgGroupPermissions['maintainer']['autopatrol'] = true; $wgGroupPermissions['maintainer']['patrol'] = true; $wgGroupPermissions['maintainer']['noratelimit'] = true; @@ -232,6 +239,16 @@ $wgAutoConfirmAge = 86400*3; // three days # require at least 20 normal edits before granting the 'writeapi' right $wgAutoConfirmCount = 20; +# Enforce basic editing etiquette (FS#46190) +# We set the defaults for "minordefault" (disabled) and "forceeditsummary" +# (enabled) options and hide them from the user preferences dialog. Note that +# hiding the user preferences with $wgHiddenPrefs results in everybody using +# the defaults, regardless of the users' earlier preference. +$wgDefaultUserOptions["minordefault"] = 0; +$wgDefaultUserOptions["forceeditsummary"] = 1; +$wgHiddenPrefs[] = "minordefault"; +$wgHiddenPrefs[] = "forceeditsummary"; + ## ## Additional extensions -- cgit v1.2.3-54-g00ecf