minor fixes
This commit is contained in:
parent
9c09f43ad8
commit
81b1454b2e
|
@ -38,6 +38,8 @@ require_once $config['homedir'].'/godmode/wizards/Wizard.main.php';
|
|||
class Diagnostics extends Wizard
|
||||
{
|
||||
|
||||
const INNODB_FLUSH_LOG_AT_TRX_COMMIT = 1;
|
||||
|
||||
/**
|
||||
* Ajax controller page.
|
||||
*
|
||||
|
@ -797,8 +799,8 @@ class Diagnostics extends Wizard
|
|||
case 'innodb_flush_log_at_trx_commit':
|
||||
$name = __('InnoDB flush log at trx-commit');
|
||||
$value = $item['Value'];
|
||||
$status = ($item['Value'] == 2) ? 1 : 0;
|
||||
$message = __('Recommended Value').' 2';
|
||||
$status = ((int) $item['Value'] === self::INNODB_FLUSH_LOG_AT_TRX_COMMIT) ? 1 : 0;
|
||||
$message = __('Recommended Value %d', self::INNODB_FLUSH_LOG_AT_TRX_COMMIT);
|
||||
break;
|
||||
|
||||
case 'innodb_lock_wait_timeout':
|
||||
|
|
|
@ -148,7 +148,7 @@ if (isset($config['console_log_enabled']) && $config['console_log_enabled'] == 1
|
|||
ini_set('error_log', $config['homedir'].'/log/console.log');
|
||||
} else {
|
||||
ini_set('log_errors', 0);
|
||||
ini_set('error_log', null);
|
||||
ini_set('error_log', '');
|
||||
}
|
||||
|
||||
if (isset($config['error'])) {
|
||||
|
|
Loading…
Reference in New Issue