From 006470a427202f0da4af5d773d81bbceb6d8f2e1 Mon Sep 17 00:00:00 2001 From: Flancian <0@flancia.org> Date: Wed, 6 Nov 2024 00:42:12 +0100 Subject: [PATCH] Suppress warnings including deprecation notices when MEDIAWIKI_DEBUG=0. --- LocalSettings.php.tmpl | 5 +++++ abra.sh | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/LocalSettings.php.tmpl b/LocalSettings.php.tmpl index 67fe27e..38e3d42 100644 --- a/LocalSettings.php.tmpl +++ b/LocalSettings.php.tmpl @@ -191,8 +191,13 @@ $wgGroupPermissions['*']['createaccount'] = false; $wgDebugLogFile = "/var/log/debug-{$wgDBname}.log"; $wgShowExceptionDetails = true; $wgDebugToolbar = true; +{{ else }} +$wgShowDebug = false; +$wgDevelopmentWarnings = false; +$wgDeprecationReleaseLimit = '1.0'; {{ end }} + {{ if eq (env "OPENID_ENABLED") "1" }} wfLoadExtension( 'PluggableAuth' ); wfLoadExtension( 'OpenIDConnect' ); diff --git a/abra.sh b/abra.sh index a637a47..0c85d93 100644 --- a/abra.sh +++ b/abra.sh @@ -1,4 +1,4 @@ -export LOCAL_SETTINGS_CONF_VERSION=v25 +export LOCAL_SETTINGS_CONF_VERSION=v26 export HTACCESS_CONF_VERSION=v1 export ENTRYPOINT_CONF_VERSION=v21 export COMPOSER_LOCAL_CONF_VERSION=v5