diff options
author | grum <grum@piwigo.org> | 2008-11-10 10:15:04 +0000 |
---|---|---|
committer | grum <grum@piwigo.org> | 2008-11-10 10:15:04 +0000 |
commit | 7b0669167ff9e0da5a32a6aabdfe9d143201a20e (patch) | |
tree | ac5db3a1dfaf934ed7725906ae0df75dec8dac35 /include/common.inc.php | |
parent | 2a804c8b21820470fa334a9782878768a1095345 (diff) |
Add a new config value 'show_php_error' to allow debugging of RC to be easier.
See topic #99192 on the forum.
git-svn-id: http://piwigo.org/svn/trunk@2859 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | include/common.inc.php | 7 |
1 files changed, 7 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'); |