BUG 0000 forcing to use debug=1 for dev envs, other ways

This commit is contained in:
Erik Amaru Ortiz
2011-11-21 18:14:59 -04:00
parent 037224ebed
commit bf9d9b5a7b

View File

@@ -42,7 +42,13 @@
if ($ini_contents !== false) if ($ini_contents !== false)
$config = array_merge($default_config, $ini_contents); $config = array_merge($default_config, $ini_contents);
} }
else {
// if the env.ini file doesn't exist, and the current is a developemnt env, then force enable debug
if (!file_exists ( PATH_TRUNK . 'workflow/engine/methods/login/version-pmos.php' )) {
$config['debug'] = 1;
}
}
if ($config['debug']) { if ($config['debug']) {
$config['debug_sql'] = 1; $config['debug_sql'] = 1;
} }