X-Git-Url: https://git.cyclocoop.org/%242?a=blobdiff_plain;f=includes%2FDefaultSettings.php;h=e81909abb5ebd190065b9bd544656c9e5d52bae4;hb=da9d5c218855e0b2b60eafc384898a009c51ebbe;hp=27769f973d7515352fb03e710cb826334b73563e;hpb=1e9be3506c3ad5fbb146f0452ee5210b8f9d615c;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index 27769f973d..761e92830f 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -1646,13 +1646,6 @@ $wgEmergencyContact = false; */ $wgPasswordSender = false; -/** - * Sender name for e-mail notifications. - * - * @deprecated since 1.23; use the system message 'emailsender' instead. - */ -$wgPasswordSenderName = 'MediaWiki Mail'; - /** * Reply-To address for e-mail notifications. * @@ -3800,46 +3793,14 @@ $wgResourceLoaderMaxQueryLength = false; $wgResourceLoaderValidateJS = true; /** - * If set to true, statically-sourced (file-backed) JavaScript resources will - * be parsed for validity before being bundled up into ResourceLoader modules. - * - * This can be helpful for development by providing better error messages in - * default (non-debug) mode, but JavaScript parsing is slow and memory hungry - * and may fail on large pre-bundled frameworks. - */ -$wgResourceLoaderValidateStaticJS = false; - -/** - * Global LESS variables. An associative array binding variable names to - * LESS code snippets representing their values. + * When enabled, execution of JavaScript modules is profiled client-side. * - * Adding an item here is equivalent to writing `@variable: value;` - * at the beginning of all your .less files, with all the consequences. - * In particular, string values must be escaped and quoted. + * Instrumentation happens in mw.loader.profiler. + * Use `mw.inspect('time')` from the browser console to display the data. * - * Changes to this configuration do NOT trigger cache invalidation. - * - * @par Example: - * @code - * $wgResourceLoaderLESSVars = [ - * 'exampleFontSize' => '1em', - * 'exampleBlue' => '#36c', - * ]; - * @endcode - * @since 1.22 - * @deprecated since 1.30 Use ResourceLoaderModule::getLessVars() instead to - * add variables to individual modules that need them. - */ -$wgResourceLoaderLESSVars = [ - /** - * Minimum available screen width at which a device can be considered a tablet - * The number is currently based on the device width of a Samsung Galaxy S5 mini and is low - * enough to cover iPad (768px). Number is prone to change with new information. - * @since 1.27 - * @deprecated 1.31 Use mediawiki.ui/variables instead - */ - 'deviceWidthTablet' => '720px', -]; + * @since 1.32 + */ +$wgResourceLoaderEnableJSProfiler = false; /** * Whether ResourceLoader should attempt to persist modules in localStorage on @@ -4438,7 +4399,7 @@ $wgPreprocessorCacheThreshold = 1000; $wgEnableScaryTranscluding = false; /** - * Expiry time for transcluded templates cached in transcache database table. + * Expiry time for transcluded templates cached in object cache. * Only used $wgEnableInterwikiTranscluding is set to true. */ $wgTranscludeCacheExpiry = 3600; @@ -6189,24 +6150,28 @@ $wgTrxProfilerLimits = [ 'GET' => [ 'masterConns' => 0, 'writes' => 0, - 'readQueryTime' => 5 + 'readQueryTime' => 5, + 'readQueryRows' => 10000 ], // HTTP POST requests. // Master reads and writes will happen for a subset of these. 'POST' => [ 'readQueryTime' => 5, 'writeQueryTime' => 1, + 'readQueryRows' => 100000, 'maxAffected' => 1000 ], 'POST-nonwrite' => [ 'masterConns' => 0, 'writes' => 0, - 'readQueryTime' => 5 + 'readQueryTime' => 5, + 'readQueryRows' => 10000 ], // Deferred updates that run after HTTP response is sent for GET requests 'PostSend-GET' => [ 'readQueryTime' => 5, 'writeQueryTime' => 1, + 'readQueryRows' => 10000, 'maxAffected' => 1000, // Log master queries under the post-send entry point as they are discouraged 'masterConns' => 0, @@ -6216,12 +6181,14 @@ $wgTrxProfilerLimits = [ 'PostSend-POST' => [ 'readQueryTime' => 5, 'writeQueryTime' => 1, + 'readQueryRows' => 100000, 'maxAffected' => 1000 ], // Background job runner 'JobRunner' => [ 'readQueryTime' => 30, 'writeQueryTime' => 5, + 'readQueryRows' => 100000, 'maxAffected' => 500 // ballpark of $wgUpdateRowsPerQuery ], // Command-line scripts @@ -6381,8 +6348,6 @@ $wgDeprecationReleaseLimit = false; * Profiler configuration. * * To use a profiler, set $wgProfiler in LocalSetings.php. - * For backwards-compatibility, it is also allowed to set the variable from - * a separate file called StartProfiler.php, which MediaWiki will include. * * Example: * @@ -6437,6 +6402,13 @@ $wgDeprecationReleaseLimit = false; */ $wgProfiler = []; +/** + * Allow the profileinfo.php entrypoint to be used. + * + * @since 1.5.0 + */ +$wgEnableProfileInfo = false; + /** * Only record profiling info for pages that took longer than this * @deprecated since 1.25: set $wgProfiler['threshold'] instead. @@ -8034,6 +8006,7 @@ $wgActions = [ 'history' => true, 'info' => true, 'markpatrolled' => true, + 'mcrundo' => McrUndoAction::class, 'protect' => true, 'purge' => true, 'raw' => true, @@ -8820,7 +8793,7 @@ $wgSearchRunSuggestedQuery = true; * @since 1.27 * @var string path to file */ -$wgPopularPasswordFile = __DIR__ . '/../serialized/commonpasswords.cdb'; +$wgPopularPasswordFile = __DIR__ . '/password/commonpasswords.cdb'; /* * Max time (in seconds) a user-generated transaction can spend in writes. @@ -8870,6 +8843,24 @@ $wgCSPHeader = false; */ $wgCSPReportOnlyHeader = false; +/** + * List of messages which might contain raw HTML. + * Extensions should add their messages here. The list is used for access control: + * changing messages listed here will require editsitecss and editsitejs rights. + * + * Message names must be given with underscores rather than spaces and with lowercase first letter. + * + * @since 1.32 + * @var string[] + */ +$wgRawHtmlMessages = [ + 'copyright', + 'history_copyright', + 'googlesearch', + 'feedback-terms', + 'feedback-termsofuse', +]; + /** * Mapping of event channels (or channel categories) to EventRelayer configuration. * @@ -9037,7 +9028,7 @@ $wgExpiryWidgetNoDatePicker = false; * @since 1.32 * @var int One of the MIGRATION_* constants */ -$wgChangeTagsSchemaMigrationStage = MIGRATION_OLD; +$wgChangeTagsSchemaMigrationStage = MIGRATION_WRITE_BOTH; /** * Temporarily flag to use change_tag_def table as backend of change tag statistics.