Force log check each based in configuration state
This commit is contained in:
parent
af45aec166
commit
4d1ddc2066
|
@ -311,3 +311,15 @@ if (isset($_SESSION['meny_type']) === true && empty($_SESSION['menu_type']) ===
|
|||
} else {
|
||||
$config['menu_type'] = 'classic';
|
||||
}
|
||||
|
||||
|
||||
// Log.
|
||||
if (isset($config['console_log_enabled']) === true
|
||||
&& $config['console_log_enabled'] == 1
|
||||
) {
|
||||
ini_set('log_errors', true);
|
||||
ini_set('error_log', $config['homedir'].'/log/console.log');
|
||||
} else {
|
||||
ini_set('log_errors', false);
|
||||
ini_set('error_log', '');
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue