X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2FDefaultSettings.php;h=3cd7ef181ab3ca8a393101de024722ba924bfb31;hp=780976a1c8d5fddbc7ea8d809b38372e123a2f9c;hb=08edb27f6ce31c676660a4ef89b87da79bde2cc2;hpb=45ba701204a4bad00dd36bdc2e2570483e0d92a3 diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index 780976a1c8..b707174ced 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -38,10 +38,6 @@ * @file */ -/** - * @defgroup Globalsettings Global settings - */ - /** * @cond file_level_code * This is not a valid entry point, perform no further processing unless @@ -290,6 +286,17 @@ $wgLogo = false; * ]; * @endcode * + * SVG is also supported but when enabled, it + * disables 1.5x and 2x as svg will already + * be optimised for screen resolution. + * + * @par Example: + * @code + * $wgLogoHD = [ + * "svg" => "path/to/svg_version.svg", + * ]; + * @endcode + * * @since 1.25 */ $wgLogoHD = false; @@ -1799,7 +1806,7 @@ $wgDBtype = 'mysql'; /** * Whether to use SSL in DB connection. * - * This setting is only used $wgLBFactoryConf['class'] is set to + * This setting is only used if $wgLBFactoryConf['class'] is set to * 'LBFactorySimple' and $wgDBservers is an empty array; otherwise * the DBO_SSL flag must be set in the 'flags' option of the database * connection to achieve the same functionality. @@ -2543,6 +2550,8 @@ $wgGitInfoCacheDirectory = false; * It should be appended in the query string of static CSS and JS includes, * to ensure that client-side caches do not keep obsolete copies of global * styles. + * + * @deprecated since 1.31 */ $wgStyleVersion = '303'; @@ -3672,23 +3681,6 @@ $wgResourceLoaderMaxage = [ */ $wgResourceLoaderDebug = false; -/** - * Put each statement on its own line when minifying JavaScript. This makes - * debugging in non-debug mode a bit easier. - * - * @deprecated since 1.27: Always false; no longer configurable. - */ -$wgResourceLoaderMinifierStatementsOnOwnLine = false; - -/** - * Maximum line length when minifying JavaScript. This is not a hard maximum: - * the minifier will try not to produce lines longer than this, but may be - * forced to do so in certain cases. - * - * @deprecated since 1.27: Always 1,000; no longer configurable. - */ -$wgResourceLoaderMinifierMaxLineLength = 1000; - /** * Whether to ensure the mediawiki.legacy library is loaded before other modules. * @@ -3696,16 +3688,6 @@ $wgResourceLoaderMinifierMaxLineLength = 1000; */ $wgIncludeLegacyJavaScript = false; -/** - * Use jQuery 3 (with jQuery Migrate) instead of jQuery 1. - * - * This is a temporary feature flag for the MediaWiki 1.29 development cycle while - * instabilities with jQuery 3 are being addressed. See T124742. - * - * @deprecated since 1.29 - */ -$wgUsejQueryThree = true; - /** * Whether or not to assign configuration variables to the global window object. * @@ -3781,7 +3763,7 @@ $wgResourceLoaderValidateStaticJS = false; * @code * $wgResourceLoaderLESSVars = [ * 'exampleFontSize' => '1em', - * 'exampleBlue' => '#eee', + * 'exampleBlue' => '#36c', * ]; * @endcode * @since 1.22 @@ -4849,6 +4831,7 @@ $wgReservedUsernames = [ 'msg:double-redirect-fixer', // Automatic double redirect fix 'msg:usermessage-editor', // Default user for leaving user messages 'msg:proxyblocker', // For $wgProxyList and Special:Blockme (removed in 1.22) + 'msg:sorbs', // For $wgEnableDnsBlacklist etc. 'msg:spambot_username', // Used by cleanupSpam.php 'msg:autochange-username', // Used by anon category RC entries (parser functions, Lua & purges) ]; @@ -4868,6 +4851,7 @@ $wgDefaultUserOptions = [ 'editfont' => 'monospace', 'editondblclick' => 0, 'editsectiononrightclick' => 0, + 'email-allow-new-users' => 1, 'enotifminoredits' => 0, 'enotifrevealaddr' => 0, 'enotifusertalkpages' => 1, @@ -4880,7 +4864,6 @@ $wgDefaultUserOptions = [ 'hidepatrolled' => 0, 'hidecategorization' => 1, 'imagesize' => 2, - 'math' => 1, 'minordefault' => 0, 'newpageshidepatrolled' => 0, 'nickname' => '', @@ -5165,6 +5148,7 @@ $wgGroupPermissions['user']['sendemail'] = true; $wgGroupPermissions['user']['applychangetags'] = true; $wgGroupPermissions['user']['changetags'] = true; $wgGroupPermissions['user']['editcontentmodel'] = true; +$wgGroupPermissions['user']['sendemail-new-users'] = true; // Implicit group for accounts that pass $wgAutoConfirmAge $wgGroupPermissions['autoconfirmed']['autoconfirmed'] = true; @@ -5784,7 +5768,7 @@ $wgPasswordAttemptThrottle = [ ]; /** - * @var Array Map of (grant => right => boolean) + * @var array Map of (grant => right => boolean) * Users authorize consumers (like Apps) to act on their behalf but only with * a subset of the user's normal account rights (signed off on by the user). * The possible rights to grant to a consumer are bundled into groups called @@ -5886,7 +5870,7 @@ $wgGrantPermissions['createaccount']['createaccount'] = true; $wgGrantPermissions['privateinfo']['viewmyprivateinfo'] = true; /** - * @var Array Map of grants to their UI grouping + * @var array Map of grants to their UI grouping * @since 1.27 */ $wgGrantPermissionGroups = [ @@ -6350,7 +6334,9 @@ $wgStatsdMetricPrefix = 'MediaWiki'; * Rates are sampling probabilities (e.g. 0.1 means 1 in 10 events are sampled). * @since 1.28 */ -$wgStatsdSamplingRates = []; +$wgStatsdSamplingRates = [ + 'wanobjectcache:*' => 0.001 +]; /** * InfoAction retrieves a list of transclusion links (both to and from). @@ -6803,6 +6789,10 @@ $wgRCWatchCategoryMembership = false; /** * Use RC Patrolling to check for vandalism (from recent changes and watchlists) * New pages and new files are included. + * + * @note If you disable all patrolling features, you probably also want to + * remove 'patrol' from $wgFilterLogTypes so a show/hide link isn't shown on + * Special:Log. */ $wgUseRCPatrol = true; @@ -6834,12 +6824,20 @@ $wgStructuredChangeFiltersLiveUpdatePollingRate = 3; /** * Use new page patrolling to check new pages on Special:Newpages + * + * @note If you disable all patrolling features, you probably also want to + * remove 'patrol' from $wgFilterLogTypes so a show/hide link isn't shown on + * Special:Log. */ $wgUseNPPatrol = true; /** * Use file patrolling to check new files on Special:Newfiles * + * @note If you disable all patrolling features, you probably also want to + * remove 'patrol' from $wgFilterLogTypes so a show/hide link isn't shown on + * Special:Log. + * * @since 1.27 */ $wgUseFilePatrol = true; @@ -6946,6 +6944,31 @@ $wgAllowCategorizedRecentChanges = false; */ $wgUseTagFilter = true; +/** + * List of core tags to enable. Available tags are: + * - 'mw-contentmodelchange': Edit changes content model of a page + * - 'mw-new-redirect': Edit makes new redirect page (new page or by changing content page) + * - 'mw-removed-redirect': Edit changes an existing redirect into a non-redirect + * - 'mw-changed-redirect-target': Edit changes redirect target + * - 'mw-blank': Edit completely blanks the page + * - 'mw-replace': Edit removes more than 90% of the content + * - 'mw-rollback': Edit is a rollback, made through the rollback link or rollback API + * - 'mw-undo': Edit made through an undo link + * + * @var array + * @since 1.31 + */ +$wgSoftwareTags = [ + 'mw-contentmodelchange' => true, + 'mw-new-redirect' => true, + 'mw-removed-redirect' => true, + 'mw-changed-redirect-target' => true, + 'mw-blank' => true, + 'mw-replace' => true, + 'mw-rollback' => true, + 'mw-undo' => true, +]; + /** * If set to an integer, pages that are watched by this many users or more * will not require the unwatchedpages permission to view the number of @@ -7413,6 +7436,7 @@ $wgJobClasses = [ 'refreshLinksDynamic' => 'RefreshLinksJob', 'activityUpdateJob' => 'ActivityUpdateJob', 'categoryMembershipChange' => 'CategoryMembershipChangeJob', + 'clearUserWatchlist' => 'ClearUserWatchlistJob', 'cdnPurge' => 'CdnPurgeJob', 'enqueue' => 'EnqueueJob', // local queue for multi-DC setups 'null' => 'NullJob' @@ -7953,6 +7977,8 @@ $wgExemptFromUserRobotsControl = null; * machine-readable data via api.php * * See https://www.mediawiki.org/wiki/API + * + * @deprecated since 1.31 */ $wgEnableAPI = true; @@ -7960,6 +7986,8 @@ $wgEnableAPI = true; * Allow the API to be used to perform write operations * (page edits, rollback, etc.) when an authorised user * accesses it + * + * @deprecated since 1.31 */ $wgEnableWriteAPI = true; @@ -8251,6 +8279,22 @@ $wgPhpCli = '/usr/bin/php'; */ $wgShellLocale = 'C.UTF-8'; +/** + * Method to use to restrict shell commands + * + * Supported options: + * - 'autodetect': Autodetect if any restriction methods are available + * - 'firejail': Use firejail + * - false: Don't use any restrictions + * + * @note If using firejail with MediaWiki running in a home directory different + * from the webserver user, firejail 0.9.44+ is required. + * + * @since 1.31 + * @var string|bool + */ +$wgShellRestrictionMethod = false; + /** @} */ # End shell } /************************************************************************//**