diff options
author | John Molakvoæ <skjnldsv@users.noreply.github.com> | 2023-05-09 10:14:21 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-09 10:14:21 +0200 |
commit | ca88a1876b5e6c44f8c5030240eae0aff524efbc (patch) | |
tree | 1475e6d6e8407d07d92f149e29e741209043236f | |
parent | 14a468f326a105c288f105492a7221fc2e27d3e2 (diff) | |
parent | a6966c0b2db79e188b31913e14d9fb5a656fa4cd (diff) | |
download | nextcloud-server-ca88a1876b5e6c44f8c5030240eae0aff524efbc.tar.gz nextcloud-server-ca88a1876b5e6c44f8c5030240eae0aff524efbc.zip |
Merge pull request #38133 from nextcloud/feat/setupcheck-debug
-rw-r--r-- | core/js/setupchecks.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/js/setupchecks.js b/core/js/setupchecks.js index 828c950d389..6260292db43 100644 --- a/core/js/setupchecks.js +++ b/core/js/setupchecks.js @@ -521,6 +521,12 @@ type: OC.SetupChecks.MESSAGE_TYPE_WARNING }) } + if (window.oc_debug) { + messages.push({ + msg: t('core', 'This instance is running in debug mode. Only enable this for local development and not in production environments.'), + type: OC.SetupChecks.MESSAGE_TYPE_WARNING + }) + } OC.SetupChecks.addGenericSetupCheck(data, 'OCA\\Settings\\SetupChecks\\PhpDefaultCharset', messages) OC.SetupChecks.addGenericSetupCheck(data, 'OCA\\Settings\\SetupChecks\\PhpOutputBuffering', messages) |