Ignore:
Timestamp:
Nov 10, 2008, 11:15:04 AM (15 years ago)
Author:
grum
Message:

Add a new config value 'show_php_error' to allow debugging of RC to be easier.
See topic #99192 on the forum.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/common.inc.php

    r2824 r2859  
    9393include(PHPWG_ROOT_PATH . 'include/config_default.inc.php');
    9494@include(PHPWG_ROOT_PATH. 'include/config_local.inc.php');
     95
     96if(isset($conf['show_php_errors']) && !empty($conf['show_php_errors']))
     97{
     98  ini_set('error_reporting', $conf['show_php_errors']);
     99  ini_set('display_errors', true);
     100}
     101
    95102include(PHPWG_ROOT_PATH . 'include/constants.php');
    96103include(PHPWG_ROOT_PATH . 'include/functions.inc.php');
Note: See TracChangeset for help on using the changeset viewer.