mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 16:24:54 +02:00
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
|
class Diagnostics extends Wizard
|
||||||
{
|
{
|
||||||
|
|
||||||
|
const INNODB_FLUSH_LOG_AT_TRX_COMMIT = 1;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Ajax controller page.
|
* Ajax controller page.
|
||||||
*
|
*
|
||||||
@ -797,8 +799,8 @@ class Diagnostics extends Wizard
|
|||||||
case 'innodb_flush_log_at_trx_commit':
|
case 'innodb_flush_log_at_trx_commit':
|
||||||
$name = __('InnoDB flush log at trx-commit');
|
$name = __('InnoDB flush log at trx-commit');
|
||||||
$value = $item['Value'];
|
$value = $item['Value'];
|
||||||
$status = ($item['Value'] == 2) ? 1 : 0;
|
$status = ((int) $item['Value'] === self::INNODB_FLUSH_LOG_AT_TRX_COMMIT) ? 1 : 0;
|
||||||
$message = __('Recommended Value').' 2';
|
$message = __('Recommended Value %d', self::INNODB_FLUSH_LOG_AT_TRX_COMMIT);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'innodb_lock_wait_timeout':
|
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');
|
ini_set('error_log', $config['homedir'].'/log/console.log');
|
||||||
} else {
|
} else {
|
||||||
ini_set('log_errors', 0);
|
ini_set('log_errors', 0);
|
||||||
ini_set('error_log', null);
|
ini_set('error_log', '');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isset($config['error'])) {
|
if (isset($config['error'])) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user