X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FDefaultSettings.php;h=f0e9e83a0e1fe863903922d79a834ab16c05d6b0;hb=8c261ee924ae27dcfca694f5e5233e81f12f5dc9;hp=664718a488d4de6c5e9460261cd41acd798930df;hpb=253d5a07ca762cd6e9030af1d297ecfbaacdb004;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index 664718a488..f0e9e83a0e 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -1835,13 +1835,6 @@ $wgDBmwschema = null; */ $wgSQLiteDataDir = ''; -/** - * Make all database connections secretly go to localhost. Fool the load balancer - * thinking there is an arbitrarily large cluster of servers to connect to. - * Useful for debugging. - */ -$wgAllDBsAreLocalhost = false; - /** * Shared database for multiple wikis. Commonly used for storing a user table * for single sign-on. The server for this database must be the same as for the @@ -2092,7 +2085,7 @@ $wgExternalStores = []; * Create a cluster named 'cluster1' containing three servers: * @code * $wgExternalServers = [ - * 'cluster1' => [ 'srv28', 'srv29', 'srv30' ] + * 'cluster1' => * ]; * @endcode * @@ -2123,7 +2116,7 @@ $wgDefaultExternalStore = false; * * Set to 0 to disable, or number of seconds before cache expiry. */ -$wgRevisionCacheExpiry = 0; +$wgRevisionCacheExpiry = 86400 * 7; /** @} */ # end text storage } @@ -4353,6 +4346,18 @@ $wgEnableScaryTranscluding = false; */ $wgTranscludeCacheExpiry = 3600; +/** + * Enable the magic links feature of automatically turning ISBN xxx, + * PMID xxx, RFC xxx into links + * + * @since 1.28 + */ +$wgEnableMagicLinks = [ + 'ISBN' => true, + 'PMID' => true, + 'RFC' => true +]; + /** @} */ # end of parser settings } /************************************************************************//** @@ -5077,6 +5082,7 @@ $wgGroupPermissions['user']['purge'] = true; $wgGroupPermissions['user']['sendemail'] = true; $wgGroupPermissions['user']['applychangetags'] = true; $wgGroupPermissions['user']['changetags'] = true; +$wgGroupPermissions['user']['editcontentmodel'] = true; // Implicit group for accounts that pass $wgAutoConfirmAge $wgGroupPermissions['autoconfirmed']['autoconfirmed'] = true; @@ -5107,7 +5113,6 @@ $wgGroupPermissions['sysop']['undelete'] = true; $wgGroupPermissions['sysop']['editinterface'] = true; $wgGroupPermissions['sysop']['editusercss'] = true; $wgGroupPermissions['sysop']['edituserjs'] = true; -$wgGroupPermissions['sysop']['editcontentmodel'] = true; $wgGroupPermissions['sysop']['import'] = true; $wgGroupPermissions['sysop']['importupload'] = true; $wgGroupPermissions['sysop']['move'] = true; @@ -5581,6 +5586,11 @@ $wgRateLimits = [ 'ip' => [ 8, 60 ], 'newbie' => [ 8, 60 ], ], + // Changing the content model of a page + 'editcontentmodel' => [ + 'newbie' => [ 2, 120 ], + 'user' => [ 8, 60 ], + ], ]; /** @@ -5967,7 +5977,7 @@ $wgTrxProfilerLimits = [ 'POST' => [ 'readQueryTime' => 5, 'writeQueryTime' => 1, - 'maxAffected' => 500 + 'maxAffected' => 1000 ], 'POST-nonwrite' => [ 'masterConns' => 0, @@ -5978,7 +5988,7 @@ $wgTrxProfilerLimits = [ 'PostSend' => [ 'readQueryTime' => 5, 'writeQueryTime' => 1, - 'maxAffected' => 500 + 'maxAffected' => 1000 ], // Background job runner 'JobRunner' => [ @@ -8275,7 +8285,7 @@ $wgPageLanguageUseDB = false; * Global configuration variable for Virtual REST Services. * * Use the 'path' key to define automatically mounted services. The value for this - * key is a map of path prefixes to service configuration. The later is an array of: + * key is a map of path prefixes to service configuration. The latter is an array of: * - class : the fully qualified class name * - options : map of arguments to the class constructor * Such services will be available to handle queries under their path from the VRS