X-Git-Url: http://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2FDefaultSettings.php;h=f473b3e7f7a29a27a88ad604a09b904595b4c4e9;hp=5c3ac06bf13524c34db48d5f66031d4499dc1da8;hb=152cbbff36937b4afca5ed7ed34753c57af721ae;hpb=c2adecb31b16a36efdb509a575533c7f103a0576 diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index 5c3ac06bf1..0a18a7007c 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -71,7 +71,7 @@ $wgConfigRegistry = [ * MediaWiki version number * @since 1.2 */ -$wgVersion = '1.31.0-alpha'; +$wgVersion = '1.31.5'; /** * Name of the site. It must be changed in LocalSettings.php @@ -157,19 +157,6 @@ $wgUsePathInfo = ( strpos( PHP_SAPI, 'cgi' ) === false ) && ( strpos( PHP_SAPI, 'apache2filter' ) === false ) && ( strpos( PHP_SAPI, 'isapi' ) === false ); -/** - * The extension to append to script names by default. - * - * Some hosting providers used PHP 4 for *.php files, and PHP 5 for *.php5. - * This variable was provided to support those providers. - * - * @since 1.11 - * @deprecated since 1.25; support for '.php5' has been phased out of MediaWiki - * proper. Backward-compatibility can be maintained by configuring your web - * server to rewrite URLs. See RELEASE-NOTES for details. - */ -$wgScriptExtension = '.php'; - /**@}*/ /************************************************************************//** @@ -503,9 +490,6 @@ $wgImgAuthUrlPathMap = []; * - descBaseUrl URL of image description pages, e.g. https://en.wikipedia.org/wiki/File: * - scriptDirUrl URL of the MediaWiki installation, equivalent to $wgScriptPath, e.g. * https://en.wikipedia.org/w - * - scriptExtension Script extension of the MediaWiki installation, equivalent to - * $wgScriptExtension, e.g. ".php5". Defaults to ".php". - * * - articleUrl Equivalent to $wgArticlePath, e.g. https://en.wikipedia.org/wiki/$1 * - fetchDescription Fetch the text of the remote file description page. Equivalent to * $wgFetchCommonsDescriptions. @@ -2048,6 +2032,8 @@ $wgDBerrorLogTZ = false; * Even correct usage may cause failures with Unicode supplementary * characters (those not in the Basic Multilingual Plane) unless MySQL * has enhanced their Unicode support. + * + * @deprecated since 1.31 */ $wgDBmysql5 = false; @@ -3265,12 +3251,6 @@ $wgSiteNotice = ''; */ $wgSiteSupportPage = ''; -/** - * Validate the overall output using tidy and refuse - * to display the page if it's not valid. - */ -$wgValidateAllHtml = false; - /** * Default skin, for new users and anonymous visitors. Registered users may * change this to any one of the other available skins in their preferences. @@ -3311,9 +3291,10 @@ $wgAllowUserJs = false; $wgAllowUserCss = false; /** - * Allow user-preferences implemented in CSS? - * This allows users to customise the site appearance to a greater - * degree; disabling it will improve page load times. + * Allow style-related user-preferences? + * + * This controls whether the `editfont` and `underline` preferences + * are availabe to users. */ $wgAllowUserCssPrefs = true; @@ -4269,8 +4250,9 @@ $wgAllowImageTag = false; /** * Configuration for HTML postprocessing tool. Set this to a configuration - * array to enable an external tool. Dave Raggett's "HTML Tidy" is typically - * used. See https://www.w3.org/People/Raggett/tidy/ + * array to enable an external tool. By default, we now use the RemexHtml + * library; historically, Dave Raggett's "HTML Tidy" was typically used. + * See https://www.w3.org/People/Raggett/tidy/ * * If this is null and $wgUseTidy is true, the deprecated configuration * parameters will be used instead. @@ -4291,7 +4273,7 @@ $wgAllowImageTag = false; * - tidyBin: For RaggettExternal, the path to the tidy binary. * - tidyCommandLine: For RaggettExternal, additional command line options. */ -$wgTidyConfig = null; +$wgTidyConfig = [ 'driver' => 'RemexHtml' ]; /** * Set this to true to use the deprecated tidy configuration parameters. @@ -4438,7 +4420,6 @@ $wgEnableMagicLinks = [ * * This variable can have the following values: * - 'any': all pages as considered as valid articles - * - 'comma': the page must contain a comma to be considered valid * - 'link': the page must contain a [[wiki link]] to be considered valid * * See also See https://www.mediawiki.org/wiki/Manual:Article_count @@ -4491,7 +4472,8 @@ $wgCentralIdLookupProvider = 'local'; * Statements: * - MinimalPasswordLength - minimum length a user can set * - MinimumPasswordLengthToLogin - passwords shorter than this will - * not be allowed to login, regardless if it is correct. + * not be allowed to login, or offered a chance to reset their password + * as part of the login workflow, regardless if it is correct. * - MaximalPasswordLength - maximum length password a user is allowed * to attempt. Prevents DoS attacks with pbkdf2. * - PasswordCannotMatchUsername - Password cannot match username to @@ -5127,8 +5109,6 @@ $wgGroupPermissions['*']['edit'] = true; $wgGroupPermissions['*']['createpage'] = true; $wgGroupPermissions['*']['createtalk'] = true; $wgGroupPermissions['*']['writeapi'] = true; -$wgGroupPermissions['*']['editmyusercss'] = true; -$wgGroupPermissions['*']['editmyuserjs'] = true; $wgGroupPermissions['*']['viewmywatchlist'] = true; $wgGroupPermissions['*']['editmywatchlist'] = true; $wgGroupPermissions['*']['viewmyprivateinfo'] = true; @@ -5151,6 +5131,9 @@ $wgGroupPermissions['user']['upload'] = true; $wgGroupPermissions['user']['reupload'] = true; $wgGroupPermissions['user']['reupload-shared'] = true; $wgGroupPermissions['user']['minoredit'] = true; +$wgGroupPermissions['user']['editmyusercss'] = true; +$wgGroupPermissions['user']['editmyuserjson'] = true; +$wgGroupPermissions['user']['editmyuserjs'] = true; $wgGroupPermissions['user']['purge'] = true; $wgGroupPermissions['user']['sendemail'] = true; $wgGroupPermissions['user']['applychangetags'] = true; @@ -5185,6 +5168,7 @@ $wgGroupPermissions['sysop']['deletedtext'] = true; $wgGroupPermissions['sysop']['undelete'] = true; $wgGroupPermissions['sysop']['editinterface'] = true; $wgGroupPermissions['sysop']['editusercss'] = true; +$wgGroupPermissions['sysop']['edituserjson'] = true; $wgGroupPermissions['sysop']['edituserjs'] = true; $wgGroupPermissions['sysop']['import'] = true; $wgGroupPermissions['sysop']['importupload'] = true; @@ -5671,6 +5655,7 @@ $wgRateLimits = [ 'edit' => [ 'ip' => [ 8, 60 ], 'newbie' => [ 8, 60 ], + 'user' => [ 90, 60 ], ], // Page moves 'move' => [ @@ -5697,6 +5682,10 @@ $wgRateLimits = [ 'newbie' => [ 5, 86400 ], 'user' => [ 20, 86400 ], ], + 'changeemail' => [ + 'ip-all' => [ 10, 3600 ], + 'user' => [ 4, 86400 ] + ], // Purging pages 'purge' => [ 'ip' => [ 30, 60 ], @@ -5813,8 +5802,10 @@ $wgGrantPermissions['editpage']['changetags'] = true; $wgGrantPermissions['editprotected'] = $wgGrantPermissions['editpage']; $wgGrantPermissions['editprotected']['editprotected'] = true; +// FIXME: Rename editmycssjs to editmyconfig $wgGrantPermissions['editmycssjs'] = $wgGrantPermissions['editpage']; $wgGrantPermissions['editmycssjs']['editmyusercss'] = true; +$wgGrantPermissions['editmycssjs']['editmyuserjson'] = true; $wgGrantPermissions['editmycssjs']['editmyuserjs'] = true; $wgGrantPermissions['editmyoptions']['editmyoptions'] = true; @@ -5822,6 +5813,7 @@ $wgGrantPermissions['editmyoptions']['editmyoptions'] = true; $wgGrantPermissions['editinterface'] = $wgGrantPermissions['editpage']; $wgGrantPermissions['editinterface']['editinterface'] = true; $wgGrantPermissions['editinterface']['editusercss'] = true; +$wgGrantPermissions['editinterface']['edituserjson'] = true; $wgGrantPermissions['editinterface']['edituserjs'] = true; $wgGrantPermissions['createeditmovepage'] = $wgGrantPermissions['editpage']; @@ -6862,11 +6854,6 @@ $wgUseNPPatrol = true; */ $wgUseFilePatrol = true; -/** - * Log autopatrol actions to the log table - */ -$wgLogAutopatrol = true; - /** * Provide syndication feeds (RSS, Atom) for, e.g., Recentchanges, Newpages */ @@ -6953,11 +6940,6 @@ $wgShowUpdatedMarker = true; */ $wgDisableAnonTalk = false; -/** - * Enable filtering of categories in Recentchanges - */ -$wgAllowCategorizedRecentChanges = false; - /** * Allow filtering by change tag in recentchanges, history, etc * Has no effect if no tags are defined in valid_tag. @@ -7339,7 +7321,7 @@ $wgAutoloadAttemptLowercase = true; * 'version' => '1.9.0', * 'url' => 'https://example.org/example-extension/', * 'descriptionmsg' => 'exampleextension-desc', - * 'license-name' => 'GPL-2.0+', + * 'license-name' => 'GPL-2.0-or-later', * ]; * @endcode * @@ -7373,7 +7355,7 @@ $wgAutoloadAttemptLowercase = true; * localizable message (omit in favour of 'descriptionmsg'). * * - license-name: Short name of the license (used as label for the link), such - * as "GPL-2.0+" or "MIT" (https://spdx.org/licenses/ for a list of identifiers). + * as "GPL-2.0-or-later" or "MIT" (https://spdx.org/licenses/ for a list of identifiers). */ $wgExtensionCredits = []; @@ -7458,6 +7440,8 @@ $wgJobClasses = [ 'categoryMembershipChange' => CategoryMembershipChangeJob::class, 'clearUserWatchlist' => ClearUserWatchlistJob::class, 'cdnPurge' => CdnPurgeJob::class, + 'userGroupExpiry' => UserGroupExpiryJob::class, + 'clearWatchlistNotifications' => ClearWatchlistNotificationsJob::class, 'enqueue' => EnqueueJob::class, // local queue for multi-DC setups 'null' => NullJob::class, ]; @@ -8149,6 +8133,8 @@ $wgAPIUselessQueryPages = [ /** * Enable AJAX framework + * + * @deprecated (officially) since MediaWiki 1.31 */ $wgUseAjax = true; @@ -8259,7 +8245,7 @@ $wgMaxShellWallClockTime = 180; $wgShellCgroup = false; /** - * Executable path of the PHP cli binary (php/php5). Should be set up on install. + * Executable path of the PHP cli binary. Should be set up on install. */ $wgPhpCli = '/usr/bin/php'; @@ -8833,6 +8819,13 @@ $wgInterwikiPrefixDisplayTypes = []; */ $wgCommentTableSchemaMigrationStage = MIGRATION_OLD; +/** + * Actor table schema migration stage. + * @since 1.31 + * @var int One of the MIGRATION_* constants + */ +$wgActorTableSchemaMigrationStage = MIGRATION_OLD; + /** * For really cool vim folding this needs to be at the end: * vim: foldmarker=@{,@} foldmethod=marker