diff options
author | Filip Komar <filip@mageia.org> | 2014-01-14 21:16:54 +0000 |
---|---|---|
committer | Filip Komar <filip@mageia.org> | 2014-01-14 21:16:54 +0000 |
commit | 1d52a164955658a36748ddda9229c8debd601cba (patch) | |
tree | 7a565a057eef428306a093ecafa0c7bfdb830d53 /langs/lib.php | |
parent | 70440965824ce1b06577fb37e55b09386143124c (diff) | |
download | www-1d52a164955658a36748ddda9229c8debd601cba.tar www-1d52a164955658a36748ddda9229c8debd601cba.tar.gz www-1d52a164955658a36748ddda9229c8debd601cba.tar.bz2 www-1d52a164955658a36748ddda9229c8debd601cba.tar.xz www-1d52a164955658a36748ddda9229c8debd601cba.zip |
added error_reporting level to the report & company
Diffstat (limited to 'langs/lib.php')
-rw-r--r-- | langs/lib.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/langs/lib.php b/langs/lib.php index 890b54823..f7422167f 100644 --- a/langs/lib.php +++ b/langs/lib.php @@ -2,6 +2,17 @@ /** */ +if (isset($_SERVER['APP_MODE']) && $_SERVER['APP_MODE'] !== 'prod') { + ini_set('error_reporting', E_ALL); + ini_set('show_errors', true); + ini_set('display_errors', true); +} else { + ini_set('error_reporting', FALSE); + ini_set('show_errors', FALSE); + ini_set('display_errors', FALSE); + ini_set('log_errors', FALSE); +} + include '../langs.inc.php'; /** |