aboutsummaryrefslogtreecommitdiffstats
path: root/langs.php
diff options
context:
space:
mode:
authorRomain d'Alverny <rda@mageia.org>2011-12-20 14:32:49 +0000
committerRomain d'Alverny <rda@mageia.org>2011-12-20 14:32:49 +0000
commitca0119ac786d59376a2e7e70aa5d568078da0f63 (patch)
tree5c2f49719645ba8f3fda486d832a8326be63e8fd /langs.php
parent1846a70a5b572f38032cff930256e40171242173 (diff)
downloadwww-ca0119ac786d59376a2e7e70aa5d568078da0f63.tar
www-ca0119ac786d59376a2e7e70aa5d568078da0f63.tar.gz
www-ca0119ac786d59376a2e7e70aa5d568078da0f63.tar.bz2
www-ca0119ac786d59376a2e7e70aa5d568078da0f63.tar.xz
www-ca0119ac786d59376a2e7e70aa5d568078da0f63.zip
separate test cases
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__));