* $wgExtensionAliasesFiles option to simplify adding aliases for special pages provid...
[lhc/web/wiklou.git] / includes / DefaultSettings.php
index 4e1f6a5..33a6d09 100644 (file)
@@ -567,7 +567,7 @@ $wgCheckDBSchema = true;
  * main database.
  * For backwards compatibility the shared prefix is set to the same as the local
  * prefix, and the user table is listed in the default list of shared tables.
- * 
+ *
  * $wgSharedTables may be customized with a list of tables to share in the shared
  * datbase. However it is advised to limit what tables you do share as many of
  * MediaWiki's tables may have side effects if you try to share them.
@@ -720,13 +720,6 @@ $wgLocalMessageCache = false;
  */
 $wgLocalMessageCacheSerialized = true;
 
-/**
- * Cache messages in MesssageCache per language, instead of all them together.
- * Enable this if you have thousands of messages in MediaWiki namespace in many
- * different languages.
- */
-$wgPerLanguageCaching = false;
-
 /**
  * Directory for compiled constant message array databases
  * WARNING: turning anything on will just break things, aaaaaah!!!!
@@ -955,6 +948,11 @@ $wgDebugDumpSql         = false;
  */
 $wgDebugLogGroups       = array();
 
+/**
+ * Show the contents of $wgHooks in Special:Version
+ */
+$wgSpecialVersionShowHooks =  false;
+
 /**
  * Whether to show "we're sorry, but there has been a database error" pages.
  * Displaying errors aids in debugging, but may display information useful
@@ -1083,13 +1081,16 @@ $wgGroupPermissions['*'    ]['read']             = true;
 $wgGroupPermissions['*'    ]['edit']             = true;
 $wgGroupPermissions['*'    ]['createpage']       = true;
 $wgGroupPermissions['*'    ]['createtalk']       = true;
+$wgGroupPermissions['*'    ]['writeapi']         = true;
 
 // Implicit group for all logged-in accounts
 $wgGroupPermissions['user' ]['move']             = true;
+$wgGroupPermissions['user' ]['move-subpages']    = true;
 $wgGroupPermissions['user' ]['read']             = true;
 $wgGroupPermissions['user' ]['edit']             = true;
 $wgGroupPermissions['user' ]['createpage']       = true;
 $wgGroupPermissions['user' ]['createtalk']       = true;
+$wgGroupPermissions['user' ]['writeapi']         = true;
 $wgGroupPermissions['user' ]['upload']           = true;
 $wgGroupPermissions['user' ]['reupload']         = true;
 $wgGroupPermissions['user' ]['reupload-shared']  = true;
@@ -1107,6 +1108,7 @@ $wgGroupPermissions['bot'  ]['nominornewtalk']   = true;
 $wgGroupPermissions['bot'  ]['autopatrol']       = true;
 $wgGroupPermissions['bot'  ]['suppressredirect'] = true;
 $wgGroupPermissions['bot'  ]['apihighlimits']    = true;
+$wgGroupPermissions['bot'  ]['writeapi']         = true;
 #$wgGroupPermissions['bot'  ]['editprotected']    = true; // can edit all protected pages without cascade protection enabled
 
 // Most extra permission abilities go to this group
@@ -1121,6 +1123,7 @@ $wgGroupPermissions['sysop']['editusercssjs']    = true;
 $wgGroupPermissions['sysop']['import']           = true;
 $wgGroupPermissions['sysop']['importupload']     = true;
 $wgGroupPermissions['sysop']['move']             = true;
+$wgGroupPermissions['sysop']['move-subpages']    = true;
 $wgGroupPermissions['sysop']['patrol']           = true;
 $wgGroupPermissions['sysop']['autopatrol']       = true;
 $wgGroupPermissions['sysop']['protect']          = true;
@@ -1139,10 +1142,12 @@ $wgGroupPermissions['sysop']['markbotedits']     = true;
 $wgGroupPermissions['sysop']['suppressredirect'] = true;
 $wgGroupPermissions['sysop']['apihighlimits']    = true;
 $wgGroupPermissions['sysop']['browsearchive']    = true;
+$wgGroupPermissions['sysop']['noratelimit']      = true;
 #$wgGroupPermissions['sysop']['mergehistory']     = true;
 
 // Permission to change users' group assignments
 $wgGroupPermissions['bureaucrat']['userrights']  = true;
+$wgGroupPermissions['bureaucrat']['noratelimit'] = true;
 // Permission to change users' groups assignments across wikis
 #$wgGroupPermissions['bureaucrat']['userrights-interwiki'] = true;
 
@@ -1150,9 +1155,9 @@ $wgGroupPermissions['bureaucrat']['userrights']  = true;
 // To hide usernames from users and Sysops
 #$wgGroupPermissions['suppress']['hideuser'] = true;
 // To hide revisions/log items from users and Sysops
-#$wgGroupPermissions['suppress']['hiderevision'] = true;
+#$wgGroupPermissions['suppress']['suppressrevision'] = true;
 // For private suppression log access
-#$wgGroupPermissions['suppress']['suppress'] = true;
+#$wgGroupPermissions['suppress']['suppressionlog'] = true;
 
 /**
  * The developer group is deprecated, but can be activated if need be
@@ -1268,7 +1273,7 @@ $wgAddGroups = $wgRemoveGroups = array();
 
 
 /**
- * A list of available rights, in addition to the ones defined by the core. 
+ * A list of available rights, in addition to the ones defined by the core.
  * For extensions only.
  */
 $wgAvailableRights = array();
@@ -1279,6 +1284,14 @@ $wgAvailableRights = array();
  */
 $wgDeleteRevisionsLimit = 0;
 
+/**
+ * Used to figure out if a user is "active" or not. User::isActiveEditor()
+ * sees if a user has made at least $wgActiveUserEditCount number of edits
+ * within the last $wgActiveUserDays days.
+ */
+$wgActiveUserEditCount = 30;
+$wgActiveUserDays = 30;
+
 # Proxy scanner settings
 #
 
@@ -1328,7 +1341,7 @@ $wgCacheEpoch = '20030516000000';
  * to ensure that client-side caches don't keep obsolete copies of global
  * styles.
  */
-$wgStyleVersion = '147';
+$wgStyleVersion = '158';
 
 
 # Server-side caching:
@@ -1610,39 +1623,39 @@ $wgDisableSearchContext = false;
 
 /**
  * Set to true to have nicer highligted text in search results,
- * by default off due to execution overhead  
+ * by default off due to execution overhead
  */
 $wgAdvancedSearchHighlighting = false;
 
-/** 
+/**
  * Regexp to match word boundaries, defaults for non-CJK languages
- * should be empty for CJK since the words are not separate 
+ * should be empty for CJK since the words are not separate
  */
-$wgSearchHighlightBoundaries = version_compare("5.1", PHP_VERSION, "<")? '[\p{Z}\p{P}\p{C}]' 
+$wgSearchHighlightBoundaries = version_compare("5.1", PHP_VERSION, "<")? '[\p{Z}\p{P}\p{C}]'
        : '[ ,.;:!?~!@#$%\^&*\(\)+=\-\\|\[\]"\'<>\n\r\/{}]'; // PHP 5.0 workaround
 
 /**
  * Template for OpenSearch suggestions, defaults to API action=opensearch
- * 
+ *
  * Sites with heavy load would tipically have these point to a custom
  * PHP wrapper to avoid firing up mediawiki for every keystroke
- * 
+ *
  * Placeholders: {searchTerms}
- * 
+ *
  */
 $wgOpenSearchTemplate = false;
 
 /**
- * Enable suggestions while typing in search boxes 
- * (results are passed around in OpenSearch format) 
+ * Enable suggestions while typing in search boxes
+ * (results are passed around in OpenSearch format)
  */
 $wgEnableMWSuggest = false;
 
 /**
  *  Template for internal MediaWiki suggestion engine, defaults to API action=opensearch
- *  
+ *
  *  Placeholders: {searchTerms}, {namespaces}, {dbname}
- *  
+ *
  */
 $wgMWSuggestTemplate = false;
 
@@ -1931,6 +1944,7 @@ $wgRCLinkDays   = array( 1, 3, 7, 14, 30 );
 $wgRC2UDPAddress = false;
 $wgRC2UDPPort = false;
 $wgRC2UDPPrefix = '';
+$wgRC2UDPOmitBots = false;
 
 # Enable user search in Special:Newpages
 # This is really a temporary hack around an index install bug on some Wikipedias.
@@ -2174,6 +2188,18 @@ $wgSkinExtensionFunctions = array();
  */
 $wgExtensionMessagesFiles = array();
 
+/**
+ * Aliases for special pages provided by extensions.
+ * Associative array mapping special page to array of aliases. First alternative
+ * for each special page will be used as the normalised name for it. English
+ * aliases will be added to the end of the list so that they always work. The
+ * file must define a variable $aliases.
+ *
+ * Example:
+ *    $wgExtensionAliasesFiles['Translate'] = dirname(__FILE__).'/Translate.alias.php';
+ */
+$wgExtensionAliasesFiles = array();
+
 /**
  * Parser output hooks.
  * This is an associative array where the key is an extension-defined tag
@@ -2509,7 +2535,7 @@ $wgLogTypes = array( '',
  * Logs should remain non-transcludable
  */
 $wgLogRestrictions = array(
-       'suppress' => 'suppress'
+       'suppress' => 'suppressionlog'
 );
 
 /**
@@ -2609,6 +2635,13 @@ $wgSpecialPageGroups = array(
        'Unusedtemplates'           => 'maintenance',
        'Withoutinterwiki'          => 'maintenance',
        'Longpages'                 => 'maintenance',
+       'Shortpages'                => 'maintenance',
+       'Ancientpages'              => 'maintenance',
+       'Deadendpages'              => 'maintenance',
+       'Wantedpages'               => 'maintenance',
+       'Wantedcategories'          => 'maintenance',
+       'Unwatchedpages'            => 'maintenance',
+       'Fewestrevisions'           => 'maintenance',
 
        'Userlogin'                 => 'login',
        'Userlogout'                => 'login',
@@ -2636,12 +2669,8 @@ $wgSpecialPageGroups = array(
        'Listbots'                  => 'users',
        'Userrights'                => 'users',
        'Blockip'                   => 'users',
-
-       'Wantedpages'               => 'needy',
-       'Wantedcategories'          => 'needy',
-       'Shortpages'                => 'needy',
-       'Ancientpages'              => 'needy',
-       'Deadendpages'              => 'needy',
+       'Preferences'               => 'users',
+       'Resetpass'                 => 'users',
 
        'Mostlinked'                => 'highuse',
        'Mostlinkedcategories'      => 'highuse',
@@ -2650,35 +2679,36 @@ $wgSpecialPageGroups = array(
        'Mostimages'                => 'highuse',
        'Mostrevisions'             => 'highuse',
 
-       'Statistics'                => 'other',
-       'Fewestrevisions'           => 'other',
-       'Randompage'                => 'other',
-       'Disambiguations'           => 'other',
+       'Allpages'                  => 'pages',
+       'Prefixindex'               => 'pages',
+       'Listredirects'             => 'pages',
+       'Categories'                => 'pages',
+       'Disambiguations'           => 'pages',
+
+       'Randompage'                => 'redirects',
+       'Randomredirect'            => 'redirects',
+       'Mypage'                    => 'redirects',
+       'Mytalk'                    => 'redirects',
+       'Mycontributions'           => 'redirects',
+       'Search'                    => 'redirects',
+
+       'Movepage'                  => 'pagetools',
+       'MergeHistory'              => 'pagetools',
+       'Revisiondelete'            => 'pagetools',
+       'Undelete'                  => 'pagetools',
+       'Export'                    => 'pagetools',
+       'Import'                    => 'pagetools',
+       'Whatlinkshere'             => 'pagetools',
+
+       'Statistics'                => 'wiki',
+       'Version'                   => 'wiki',
+       'Lockdb'                    => 'wiki',
+       'Unlockdb'                  => 'wiki',
+       'Allmessages'               => 'wiki',
+
        'Specialpages'              => 'other',
        'Blockme'                   => 'other',
-       'Movepage'                  => 'other',
-       'MergeHistory'              => 'other',
-       'Lockdb'                    => 'other',
-       'Unlockdb'                  => 'other',
-       'Version'                   => 'other',
-       'Whatlinkshere'             => 'other',
        'Booksources'               => 'other',
-       'Revisiondelete'            => 'other',
-       'Export'                    => 'other',
-       'Categories'                => 'other',
-       'Undelete'                  => 'other',
-       'Import'                    => 'other',
-       'Unwatchedpages'            => 'other',
-       'Randomredirect'            => 'other',
-       'Allpages'                  => 'other',
-       'Allmessages'               => 'other',
-       'Prefixindex'               => 'other',
-       'Listredirects'             => 'other',
-       'Preferences'               => 'other',
-       'Resetpass'                 => 'other',
-       'Mypage'                    => 'other',
-       'Mytalk'                    => 'other',
-       'Mycontributions'           => 'other',
 );
 
 /**
@@ -2835,8 +2865,14 @@ $wgRateLimitLog = null;
 
 /**
  * Array of groups which should never trigger the rate limiter
+ *
+ * @deprecated as of 1.13.0, the preferred method is using
+ *  $wgGroupPermissions[]['noratelimit']. However, this will still
+ *  work if desired.
+ *
+ *  $wgRateLimitsExcludedGroups = array( 'sysop', 'bureaucrat' );
  */
-$wgRateLimitsExcludedGroups = array( 'sysop', 'bureaucrat' );
+$wgRateLimitsExcludedGroups = array();
 
 /**
  * On Special:Unusedimages, consider images "used", if they are put
@@ -3125,11 +3161,6 @@ $wgBreakFrames = false;
  */
 $wgDisableQueryPageUpdate = false;
 
-/**
- * Set this to false to disable cascading protection
- */
-$wgEnableCascadingProtection = true;
-
 /**
  * Disable output compression (enabled by default if zlib is available)
  */