mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 00:04:37 +02:00
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 {
|
} else {
|
||||||
$config['menu_type'] = 'classic';
|
$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…
x
Reference in New Issue
Block a user