aboutsummaryrefslogtreecommitdiffstats
path: root/langs.php
diff options
context:
space:
mode:
authorRomain d'Alverny <rda@mageia.org>2011-12-20 14:19:32 +0000
committerRomain d'Alverny <rda@mageia.org>2011-12-20 14:19:32 +0000
commitd8ff80491a2c2ad325bb5496e6572808fb42afc6 (patch)
tree39844a0bf4248b3e760430c40fc3ebf172259d5a /langs.php
parentf6076bf8e2da8a30bd39b228321b1a6cffdd0432 (diff)
downloadwww-d8ff80491a2c2ad325bb5496e6572808fb42afc6.tar
www-d8ff80491a2c2ad325bb5496e6572808fb42afc6.tar.gz
www-d8ff80491a2c2ad325bb5496e6572808fb42afc6.tar.bz2
www-d8ff80491a2c2ad325bb5496e6572808fb42afc6.tar.xz
www-d8ff80491a2c2ad325bb5496e6572808fb42afc6.zip
rough error display/log; temp
Diffstat (limited to 'langs.php')
-rw-r--r--langs.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/langs.php b/langs.php
index b286924a1..a20d20b0b 100644
--- a/langs.php
+++ b/langs.php
@@ -2,6 +2,16 @@
/**
*/
+if ((isset($_ENV['APP_MODE']) && $_ENV['APP_MODE'] !== 'prod')
+ || $_SERVER['HTTP_HOST'] == 'www-test.mageia.org') {
+ ini_set('error_reporting', E_ALL);
+ ini_set('show_errors', true);
+ ini_set('display_errors', true);
+ ini_set('log_errors', true);
+ //ini_set('error_log', apache_getenv('ErrorLog'));
+ echo apache_getenv('ErrorLog');
+}
+
$g_app_root = realpath(dirname(__FILE__));
define('G_APP_ROOT', $g_app_root);