mirror of
https://github.com/devcode-it/openstamanager.git
synced 2024-12-23 22:03:18 +01:00
Fix minori
This commit is contained in:
parent
44021dfa8b
commit
ffc81244e6
6
core.php
6
core.php
@ -266,8 +266,6 @@ if (!API\Response::isAPIRequest()) {
|
||||
|
||||
Permissions::check();
|
||||
|
||||
// Impostazione della lingua
|
||||
App::setLang(setting('Lingua'));
|
||||
}
|
||||
|
||||
// Retrocompatibilità
|
||||
@ -306,3 +304,7 @@ $list = array_merge($files, $custom_files);
|
||||
foreach ($list as $file) {
|
||||
include_once $file;
|
||||
}
|
||||
|
||||
if (database()->tableExists('zz_settings')) {
|
||||
App::setLang(setting('Lingua'));
|
||||
}
|
||||
|
@ -245,20 +245,29 @@ foreach ($settings as $name => $values) {
|
||||
|
||||
// MySQL
|
||||
if ($database->isInstalled()) {
|
||||
$db = [
|
||||
'mysql_version' => [
|
||||
'type' => 'version',
|
||||
'warning' => (($database->isMySQL())? false : true),
|
||||
'description' => (($database->isMySQL())? '5.7.x - 8.0.x' : '10.x'),
|
||||
'minimum' => (($database->isMySQL())? '5.7.0' : '10.1.0'),
|
||||
'maximum' => (($database->isMySQL())? '8.0.99' : '10.6.99'),
|
||||
],
|
||||
if (method_exists($database, 'isMySQL')) {
|
||||
$db = [
|
||||
'mysql_version' => [
|
||||
'type' => 'version',
|
||||
'warning' => $database->isMySQL() ? false : true,
|
||||
'description' => $database->isMySQL() ? '5.7.x - 8.0.x' : '10.x',
|
||||
'minimum' => $database->isMySQL() ? '5.7.0' : '10.1.0',
|
||||
'maximum' => $database->isMySQL() ? '8.0.99' : '10.6.99',
|
||||
],
|
||||
|
||||
'sort_buffer_size' => [
|
||||
'type' => 'value',
|
||||
'description' => '>2M',
|
||||
],
|
||||
];
|
||||
'sort_buffer_size' => [
|
||||
'type' => 'value',
|
||||
'description' => '>2M',
|
||||
],
|
||||
];
|
||||
} else {
|
||||
$db = [
|
||||
'sort_buffer_size' => [
|
||||
'type' => 'value',
|
||||
'description' => '>2M',
|
||||
],
|
||||
];
|
||||
}
|
||||
|
||||
/*foreach (App::getConfig()['db_options'] as $n => $v){
|
||||
|
||||
@ -447,7 +456,7 @@ $requirements = [
|
||||
'_SUPPORTED_' => ((version_compare(phpversion(), $settings['php_version']['minimum'], '>=') && version_compare(phpversion(), $settings['php_version']['maximum'], '<=')) ? '' : '<small><small class="label label-danger" ><i class="fa fa-warning"></i> '.tr('versioni supportate:').' '.$settings['php_version']['description'].'</small></small>'),
|
||||
]) => $php,
|
||||
tr('DBMS (_TYPE_)', [
|
||||
'_TYPE_' => $database->getType(),
|
||||
'_TYPE_' => method_exists($database, 'getType') ? $database->getType() : '',
|
||||
] ) => $mysql,
|
||||
tr('Percorsi di servizio') => $directories,
|
||||
tr('File di servizio') => $files,
|
||||
|
Loading…
Reference in New Issue
Block a user