From ca0119ac786d59376a2e7e70aa5d568078da0f63 Mon Sep 17 00:00:00 2001 From: Romain d'Alverny Date: Tue, 20 Dec 2011 14:32:49 +0000 Subject: separate test cases --- langs.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'langs.php') 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__)); -- cgit v1.2.1