diff options
Diffstat (limited to '')
-rw-r--r-- | include/common.inc.php | 7 | ||||
-rw-r--r-- | include/config_default.inc.php | 5 |
2 files changed, 12 insertions, 0 deletions
diff --git a/include/common.inc.php b/include/common.inc.php index d31aefbb6..55fec5fa4 100644 --- a/include/common.inc.php +++ b/include/common.inc.php @@ -92,6 +92,13 @@ foreach( array( include(PHPWG_ROOT_PATH . 'include/config_default.inc.php'); @include(PHPWG_ROOT_PATH. 'include/config_local.inc.php'); + +if(isset($conf['show_php_errors']) && !empty($conf['show_php_errors'])) +{ + ini_set('error_reporting', $conf['show_php_errors']); + ini_set('display_errors', true); +} + include(PHPWG_ROOT_PATH . 'include/constants.php'); include(PHPWG_ROOT_PATH . 'include/functions.inc.php'); diff --git a/include/config_default.inc.php b/include/config_default.inc.php index 394e6d117..cacade935 100644 --- a/include/config_default.inc.php +++ b/include/config_default.inc.php @@ -441,6 +441,11 @@ $conf['compiled_template_cache_language'] = false; // better performance. $conf['template_compile_check'] = true; +// this permit to show the php errors reporting (see INI 'error_reporting' +// for possible values) +// gives an empty value '' to deactivate +$conf['show_php_errors'] = E_ALL; + // +-----------------------------------------------------------------------+ // | authentication | // +-----------------------------------------------------------------------+ |