1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2024-12-23 13:58:25 +01:00

Fix minori

This commit is contained in:
Pek5892 2024-03-15 13:17:23 +01:00
parent 44021dfa8b
commit ffc81244e6
2 changed files with 29 additions and 18 deletions

View File

@ -266,8 +266,6 @@ if (!API\Response::isAPIRequest()) {
Permissions::check();
// Impostazione della lingua
App::setLang(setting('Lingua'));
}
// Retrocompatibilità
@ -305,4 +303,8 @@ foreach ($custom_files as $key => $value) {
$list = array_merge($files, $custom_files);
foreach ($list as $file) {
include_once $file;
}
}
if (database()->tableExists('zz_settings')) {
App::setLang(setting('Lingua'));
}

View File

@ -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'),
],
'sort_buffer_size' => [
'type' => 'value',
'description' => '>2M',
],
];
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',
],
];
} 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,