diff options
author | Romain d'Alverny <rda@mageia.org> | 2011-12-20 14:58:21 +0000 |
---|---|---|
committer | Romain d'Alverny <rda@mageia.org> | 2011-12-20 14:58:21 +0000 |
commit | 8620544f02d3dce6e003ae4a21c183ff76b6b6f8 (patch) | |
tree | 5c0e9dcfb285459ef35eeb48849dfb12ae9c897d | |
parent | 7b1e630c07c5c9ced12f83dca332cc9cebfd4367 (diff) | |
download | www-8620544f02d3dce6e003ae4a21c183ff76b6b6f8.tar www-8620544f02d3dce6e003ae4a21c183ff76b6b6f8.tar.gz www-8620544f02d3dce6e003ae4a21c183ff76b6b6f8.tar.bz2 www-8620544f02d3dce6e003ae4a21c183ff76b6b6f8.tar.xz www-8620544f02d3dce6e003ae4a21c183ff76b6b6f8.zip |
do not be too verbose about deprecated stuff - keep it for dev environments
-rw-r--r-- | langs.php | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -6,10 +6,15 @@ if (isset($_ENV['APP_MODE']) && $_ENV['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); } if ($_SERVER['HTTP_HOST'] == 'www-test.mageia.org') { - ini_set('error_reporting', E_ALL); + ini_set('error_reporting', E_ALL&~E_DEPRECATED); ini_set('show_errors', true); ini_set('display_errors', true); ini_set('log_errors', true); |