aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions.php
diff options
context:
space:
mode:
authorRubén Calvo <rubencm@gmail.com>2018-09-01 01:47:10 +0200
committerMarc Alexander <admin@m-a-styles.de>2019-05-09 21:22:52 +0200
commitba088f6bdc2d8dcf48f93646b13108c64124ba1d (patch)
treebec552b2044b4ea2b14bb8f1d2d4348a538dfcad /phpBB/includes/functions.php
parent84b6dd7e5fcf1a289f24513cc6fbf44faa11b428 (diff)
downloadforums-ba088f6bdc2d8dcf48f93646b13108c64124ba1d.tar
forums-ba088f6bdc2d8dcf48f93646b13108c64124ba1d.tar.gz
forums-ba088f6bdc2d8dcf48f93646b13108c64124ba1d.tar.bz2
forums-ba088f6bdc2d8dcf48f93646b13108c64124ba1d.tar.xz
forums-ba088f6bdc2d8dcf48f93646b13108c64124ba1d.zip
[ticket/12629] Add debug.errors_show
PHPBB3-12629
Diffstat (limited to 'phpBB/includes/functions.php')
-rw-r--r--phpBB/includes/functions.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php
index b30f500a4e..1bc4ae2ee4 100644
--- a/phpBB/includes/functions.php
+++ b/phpBB/includes/functions.php
@@ -3320,6 +3320,7 @@ function msg_handler($errno, $msg_text, $errfile, $errline)
{
global $cache, $db, $auth, $template, $config, $user, $request;
global $phpbb_root_path, $msg_title, $msg_long_text, $phpbb_log;
+ global $phpbb_container;
// Do not display notices if we suppress them via @
if (error_reporting() == 0 && $errno != E_USER_ERROR && $errno != E_USER_WARNING && $errno != E_USER_NOTICE)
@@ -3340,7 +3341,7 @@ function msg_handler($errno, $msg_text, $errfile, $errline)
// Check the error reporting level and return if the error level does not match
// If DEBUG is defined the default level is E_ALL
- if (($errno & ((defined('DEBUG')) ? E_ALL : error_reporting())) == 0)
+ if (($errno & ($phpbb_container->getParameter('debug.errors_show') ? E_ALL : error_reporting())) == 0)
{
return;
}
@@ -3398,7 +3399,7 @@ function msg_handler($errno, $msg_text, $errfile, $errline)
$log_text .= '<br /><br />BACKTRACE<br />' . $backtrace;
}
- if (defined('IN_INSTALL') || defined('DEBUG') || isset($auth) && $auth->acl_get('a_'))
+ if (defined('IN_INSTALL') || $phpbb_container->getParameter('debug.errors_show') || isset($auth) && $auth->acl_get('a_'))
{
$msg_text = $log_text;