Ignore:
Timestamp:
Nov 10, 2008, 11:12:20 AM (16 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
  • branches/2.0/include/common.inc.php

    r2823 r2858  
    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.