aboutsummaryrefslogtreecommitdiffstats
path: root/langs.php
diff options
context:
space:
mode:
Diffstat (limited to 'langs.php')
-rw-r--r--langs.php11
1 files changed, 7 insertions, 4 deletions
diff --git a/langs.php b/langs.php
index a20d20b0b..b15b8eae7 100644
--- a/langs.php
+++ b/langs.php
@@ -2,14 +2,17 @@
/**
*/
-if ((isset($_ENV['APP_MODE']) && $_ENV['APP_MODE'] !== 'prod')
- || $_SERVER['HTTP_HOST'] == 'www-test.mageia.org') {
+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);
+}
+
+if ($_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__));