BUG 0000 forcing to use debug=1 for dev envs, other ways
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user