X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FDefaultSettings.php;h=5a874d5bcb04203f88f372a625e5f998ae5d8293;hb=95797de3d623d5a5f48cf82edf502a2296bdc257;hp=608ef6ae5551e7651e822b9458d983da6abf12a4;hpb=436f8eb32fcbae49b7e943a1e231fbdce16ad769;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index 608ef6ae55..5a874d5bcb 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -158,7 +158,7 @@ $wgUsePathInfo = ( strpos( PHP_SAPI, 'cgi' ) === false ) && ( strpos( PHP_SAPI, 'apache2filter' ) === false ) && ( strpos( PHP_SAPI, 'isapi' ) === false ); -/**@}*/ +/** @} */ /************************************************************************//** * @name URLs and file paths @@ -330,15 +330,22 @@ $wgAppleTouchIcon = false; $wgReferrerPolicy = false; /** - * The local filesystem path to a temporary directory. This is not required to - * be web accessible. + * The local filesystem path to a temporary directory. This must not be web accessible. * - * When this setting is set to false, its value will be set through a call - * to wfTempDir(). See that methods implementation for the actual detection - * logic. + * When this setting is set to false, its value will automatically be decided + * through the first call to wfTempDir(). See that method's implementation for + * the actual detection logic. * - * Developers should use the global function wfTempDir() instead of this - * variable. + * To find the temporary path for the current wiki, developers must not use + * this variable directly. Use the global function wfTempDir() instead. + * + * The temporary directory is expected to be shared with other applications, + * including other MediaWiki instances (which might not run the same version + * or configution). When storing files here, take care to avoid conflicts + * with other instances of MediaWiki. For example, when caching the result + * of a computation, the file name should incorporate the input of the + * computation so that it cannot be confused for the result of a similar + * computation by another MediaWiki instance. * * @see wfTempDir() * @note Default changed to false in MediaWiki 1.20. @@ -377,7 +384,7 @@ $wgUploadStashScalerBaseUrl = false; */ $wgActionPaths = []; -/**@}*/ +/** @} */ /************************************************************************//** * @name Files and file uploads @@ -738,10 +745,11 @@ $wgUploadDialog = [ * * This is an array of file backend configuration arrays. * Each backend configuration has the following parameters: - * - 'name' : A unique name for the backend - * - 'class' : The file backend class to use - * - 'wikiId' : A unique string that identifies the wiki (container prefix) - * - 'lockManager' : The name of a lock manager (see $wgLockManagers) + * - name : A unique name for the backend + * - class : The file backend class to use + * - wikiId : A unique string that identifies the wiki (container prefix) + * - lockManager : The name of a lock manager (see $wgLockManagers) [optional] + * - fileJournal : File journal configuration for FileJournal::__construct() [optional] * * See FileBackend::__construct() for more details. * Additional parameters are specific to the file backend class used. @@ -774,16 +782,12 @@ $wgFileBackends = []; /** * Array of configuration arrays for each lock manager. * Each backend configuration has the following parameters: - * - 'name' : A unique name for the lock manager - * - 'class' : The lock manger class to use + * - name : A unique name for the lock manager + * - class : The lock manger class to use * * See LockManager::__construct() for more details. * Additional parameters are specific to the lock manager class used. * These settings should be global to all wikis. - * - * When using DBLockManager, the 'dbsByBucket' map can reference 'localDBMaster' as - * a peer database in each bucket. This will result in an extra connection to the domain - * that the LockManager services, which must also be a valid wiki ID. */ $wgLockManagers = []; @@ -1274,7 +1278,7 @@ $wgMaxAnimatedGifArea = 1.25e7; * $wgTiffThumbnailType = [ 'jpg', 'image/jpeg' ]; * @endcode */ -$wgTiffThumbnailType = false; +$wgTiffThumbnailType = []; /** * If rendered thumbnail files are older than this timestamp, they @@ -1879,6 +1883,36 @@ $wgUsersNotifiedOnAllChanges = []; * @{ */ +/** + * Current wiki database name + * + * Should be alphanumeric, without spaces nor hyphens. + * This is used to determine the current/local wiki ID (WikiMap::getCurrentWikiDbDomain). + * + * This should still be set even if $wgLBFactoryConf is configured. + */ +$wgDBname = 'my_wiki'; + +/** + * Current wiki database schema name + * + * Should be alphanumeric, without spaces nor hyphens. + * This is used to determine the current/local wiki ID (WikiMap::getCurrentWikiDbDomain). + * + * This should still be set even if $wgLBFactoryConf is configured. + */ +$wgDBmwschema = null; + +/** + * Current wiki database table name prefix + * + * Should be alphanumeric, without spaces nor hyphens, preferably ending in an underscore. + * This is used to determine the current/local wiki ID (WikiMap::getCurrentWikiDbDomain). + * + * This should still be set even if $wgLBFactoryConf is configured. + */ +$wgDBprefix = ''; + /** * Database host name or IP address */ @@ -1889,11 +1923,6 @@ $wgDBserver = 'localhost'; */ $wgDBport = 5432; -/** - * Name of the database; this should be alphanumeric and not contain spaces nor hyphens - */ -$wgDBname = 'my_wiki'; - /** * Database username */ @@ -1956,13 +1985,6 @@ $wgSearchType = null; */ $wgSearchTypeAlternatives = null; -/** - * Table name prefix. - * Should be alphanumeric plus underscores, and not contain spaces nor hyphens. - * Suggested format ends with an underscore. - */ -$wgDBprefix = ''; - /** * MySQL table options to use during installation or update */ @@ -1976,11 +1998,6 @@ $wgDBTableOptions = 'ENGINE=InnoDB, DEFAULT CHARSET=binary'; */ $wgSQLMode = ''; -/** - * Mediawiki schema; this should be alphanumeric and not contain spaces nor hyphens - */ -$wgDBmwschema = null; - /** * Default group to use when getting database connections. * Will be used as default query group in ILoadBalancer::getConnection. @@ -2168,7 +2185,7 @@ $wgSlaveLagCritical = 30; */ $wgDBWindowsAuthentication = false; -/**@}*/ # End of DB settings } +/** @} */ # End of DB settings } /************************************************************************//** * @name Text storage @@ -2537,11 +2554,6 @@ $wgPHPSessionHandling = 'enable'; */ $wgSessionPbkdf2Iterations = 10001; -/** - * If enabled, will send MemCached debugging information to $wgDebugLogFile - */ -$wgMemCachedDebug = false; - /** * The list of MemCached servers and port numbers */ @@ -3097,11 +3109,6 @@ $wgTranslateNumerals = true; */ $wgUseDatabaseMessages = true; -/** - * Expiry time for the message cache key - */ -$wgMsgCacheExpiry = 86400; - /** * Maximum entry size in the message cache, in bytes */ @@ -5224,13 +5231,16 @@ $wgGroupPermissions['bureaucrat']['noratelimit'] = true; # $wgGroupPermissions['sysop']['deletelogentry'] = true; # $wgGroupPermissions['sysop']['deleterevision'] = true; // To hide usernames from users and Sysops -# $wgGroupPermissions['suppress']['hideuser'] = true; +$wgGroupPermissions['suppress']['hideuser'] = true; // To hide revisions/log items from users and Sysops -# $wgGroupPermissions['suppress']['suppressrevision'] = true; +$wgGroupPermissions['suppress']['suppressrevision'] = true; // To view revisions/log items hidden from users and Sysops -# $wgGroupPermissions['suppress']['viewsuppressed'] = true; +$wgGroupPermissions['suppress']['viewsuppressed'] = true; // For private suppression log access -# $wgGroupPermissions['suppress']['suppressionlog'] = true; +$wgGroupPermissions['suppress']['suppressionlog'] = true; +// Basic rights for revision delete +$wgGroupPermissions['suppress']['deleterevision'] = true; +$wgGroupPermissions['suppress']['deletelogentry'] = true; /** * The developer group is deprecated, but can be activated if need be @@ -5703,6 +5713,11 @@ $wgRateLimits = [ 'ip-all' => [ 10, 3600 ], 'user' => [ 4, 86400 ] ], + // since 1.33 - rate limit email confirmations + 'confirmemail' => [ + 'ip-all' => [ 10, 3600 ], + 'user' => [ 4, 86400 ] + ], // Purging pages 'purge' => [ 'ip' => [ 30, 60 ], @@ -5795,6 +5810,7 @@ $wgGrantPermissions = []; // @TODO: clean up grants // @TODO: auto-include read/editsemiprotected rights? +$wgGrantPermissions['basic']['autocreateaccount'] = true; $wgGrantPermissions['basic']['autoconfirmed'] = true; $wgGrantPermissions['basic']['autopatrol'] = true; $wgGrantPermissions['basic']['editsemiprotected'] = true; @@ -5846,6 +5862,7 @@ $wgGrantPermissions['createeditmovepage']['move'] = true; $wgGrantPermissions['createeditmovepage']['move-rootuserpages'] = true; $wgGrantPermissions['createeditmovepage']['move-subpages'] = true; $wgGrantPermissions['createeditmovepage']['move-categorypages'] = true; +$wgGrantPermissions['createeditmovepage']['suppressredirect'] = true; $wgGrantPermissions['uploadfile']['upload'] = true; $wgGrantPermissions['uploadfile']['reupload-own'] = true; @@ -6814,6 +6831,8 @@ $wgRCLinkLimits = [ 50, 100, 250, 500 ]; /** * List of Days options to list in the Special:Recentchanges and * Special:Recentchangeslinked pages. + * + * @see ChangesListSpecialPage::getLinkDays */ $wgRCLinkDays = [ 1, 3, 7, 14, 30 ]; @@ -8940,7 +8959,7 @@ $wgExperiencedUserMemberSince = 30; # days * @code * $wgInterwikiPrefixDisplayTypes = [ * 'iwprefix' => 'definition' - *]; + * ]; * @endcode */ $wgInterwikiPrefixDisplayTypes = []; @@ -9080,6 +9099,16 @@ $wgFeaturePolicyReportOnly = []; */ $wgSpecialSearchFormOptions = []; +/** + * Toggles native image lazy loading, via the "loading" attribute. + * + * @warning EXPERIMENTAL! + * + * @since 1.34 + * @var array + */ +$wgNativeImageLazyLoading = false; + /** * For really cool vim folding this needs to be at the end: * vim: foldmarker=@{,@} foldmethod=marker