X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FDefaultSettings.php;h=4ddc23e261ebc03f604900fd931a764400490e16;hb=1d9fd23ab3583788fb2e3ae8e641cf83b09ef8df;hp=fdac10a53ed41d7d6373be3a29d587690b14e313;hpb=1504dea1127a5f7960dcdc4eed5a044f6a962deb;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index fdac10a53e..4ddc23e261 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -3792,6 +3792,16 @@ $wgResourceLoaderMaxQueryLength = false; */ $wgResourceLoaderValidateJS = true; +/** + * When enabled, execution of JavaScript modules is profiled client-side. + * + * Instrumentation happens in mw.loader.profiler. + * Use `mw.inspect('time')` from the browser console to display the data. + * + * @since 1.32 + */ +$wgResourceLoaderEnableJSProfiler = false; + /** * Whether ResourceLoader should attempt to persist modules in localStorage on * browsers that support the Web Storage API. @@ -4389,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; @@ -6338,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: * @@ -7998,6 +8006,7 @@ $wgActions = [ 'history' => true, 'info' => true, 'markpatrolled' => true, + 'mcrundo' => McrUndoAction::class, 'protect' => true, 'purge' => true, 'raw' => true, @@ -8834,6 +8843,22 @@ $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. + * + * @since 1.32 + * @var string[] + */ +$wgRawHtmlMessages = [ + 'copyright', + 'history_copyright', + 'googlesearch', + 'feedback-terms', + 'feedback-termsofuse', +]; + /** * Mapping of event channels (or channel categories) to EventRelayer configuration. *