* $wgExtensionAliasesFiles option to simplify adding aliases for special pages provid...
[lhc/web/wiklou.git] / includes / DefaultSettings.php
index 35455f8..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.
@@ -948,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
@@ -1080,6 +1085,7 @@ $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;
@@ -1117,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;
@@ -1135,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;
 
@@ -1264,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();
@@ -1275,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
 #
 
@@ -1324,7 +1341,7 @@ $wgCacheEpoch = '20030516000000';
  * to ensure that client-side caches don't keep obsolete copies of global
  * styles.
  */
-$wgStyleVersion = '152';
+$wgStyleVersion = '158';
 
 
 # Server-side caching:
@@ -1606,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;
 
@@ -1927,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.
@@ -2170,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
@@ -2648,13 +2678,13 @@ $wgSpecialPageGroups = array(
        'Mostcategories'            => 'highuse',
        'Mostimages'                => 'highuse',
        'Mostrevisions'             => 'highuse',
-       
+
        'Allpages'                  => 'pages',
        'Prefixindex'               => 'pages',
        'Listredirects'             => 'pages',
        'Categories'                => 'pages',
        'Disambiguations'           => 'pages',
-       
+
        'Randompage'                => 'redirects',
        'Randomredirect'            => 'redirects',
        'Mypage'                    => 'redirects',
@@ -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)
  */