Skip to content
Snippets Groups Projects
Commit 0a3c4414 authored by Jakub Klinkovský's avatar Jakub Klinkovský Committed by Florian Pritz
Browse files

archwiki: 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
parent 370ef32a
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment