Skip to content

Commit

Permalink
Merge pull request #38133 from nextcloud/feat/setupcheck-debug
Browse files Browse the repository at this point in the history
  • Loading branch information
skjnldsv authored May 9, 2023
2 parents 14a468f + a6966c0 commit ca88a18
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions core/js/setupchecks.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ca88a18

Please sign in to comment.