aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRomain d'Alverny <rda@mageia.org>2011-12-20 14:58:21 +0000
committerRomain d'Alverny <rda@mageia.org>2011-12-20 14:58:21 +0000
commit8620544f02d3dce6e003ae4a21c183ff76b6b6f8 (patch)
tree5c0e9dcfb285459ef35eeb48849dfb12ae9c897d
parent7b1e630c07c5c9ced12f83dca332cc9cebfd4367 (diff)
downloadwww-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.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/langs.php b/langs.php
index b15b8eae7..27369e1c5 100644
--- a/langs.php
+++ b/langs.php
@@ -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);