From a3eade7c4f11533f8389f0788ea450f8c44b846e Mon Sep 17 00:00:00 2001 From: webchick Date: Thu, 6 Sep 2012 21:31:33 -0700 Subject: [PATCH] Issue #1704422 by sun: Fixed Error level constants cannot be used in settings.php. --- core/includes/bootstrap.inc | 20 ++++++++++++++++++++ core/includes/errors.inc | 20 -------------------- 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/core/includes/bootstrap.inc b/core/includes/bootstrap.inc index 59d80d45b82..906a7c145bb 100644 --- a/core/includes/bootstrap.inc +++ b/core/includes/bootstrap.inc @@ -36,6 +36,26 @@ const DRUPAL_MINIMUM_PHP = '5.3.3'; */ const DRUPAL_MINIMUM_PHP_MEMORY_LIMIT = '32M'; +/** + * Error reporting level: display no errors. + */ +const ERROR_REPORTING_HIDE = 'hide'; + +/** + * Error reporting level: display errors and warnings. + */ +const ERROR_REPORTING_DISPLAY_SOME = 'some'; + +/** + * Error reporting level: display all messages. + */ +const ERROR_REPORTING_DISPLAY_ALL = 'all'; + +/** + * Error reporting level: display all messages, plus backtrace information. + */ +const ERROR_REPORTING_DISPLAY_VERBOSE = 'verbose'; + /** * @defgroup logging_severity_levels Logging severity levels * @{ diff --git a/core/includes/errors.inc b/core/includes/errors.inc index cba08e2592f..6e4a8305791 100644 --- a/core/includes/errors.inc +++ b/core/includes/errors.inc @@ -7,26 +7,6 @@ use Symfony\Component\HttpFoundation\Response; -/** - * Error reporting level: display no errors. - */ -const ERROR_REPORTING_HIDE = 'hide'; - -/** - * Error reporting level: display errors and warnings. - */ -const ERROR_REPORTING_DISPLAY_SOME = 'some'; - -/** - * Error reporting level: display all messages. - */ -const ERROR_REPORTING_DISPLAY_ALL = 'all'; - -/** - * Error reporting level: display all messages, plus backtrace information. - */ -const ERROR_REPORTING_DISPLAY_VERBOSE = 'verbose'; - /** * Maps PHP error constants to watchdog severity levels. *