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/branches/2.0@2858 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
parent
afe30fc962
commit
a3f21b4051
2 changed files with 12 additions and 0 deletions
|
@ -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');
|
||||
|
||||
|
|
|
@ -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 |
|
||||
// +-----------------------------------------------------------------------+
|
||||
|
|
Loading…
Reference in a new issue