1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2024-12-24 14:31:42 +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(); Permissions::check();
// Impostazione della lingua
App::setLang(setting('Lingua'));
} }
// Retrocompatibilità // Retrocompatibilità
@ -306,3 +304,7 @@ $list = array_merge($files, $custom_files);
foreach ($list as $file) { foreach ($list as $file) {
include_once $file; include_once $file;
} }
if (database()->tableExists('zz_settings')) {
App::setLang(setting('Lingua'));
}

View File

@ -245,13 +245,14 @@ foreach ($settings as $name => $values) {
// MySQL // MySQL
if ($database->isInstalled()) { if ($database->isInstalled()) {
if (method_exists($database, 'isMySQL')) {
$db = [ $db = [
'mysql_version' => [ 'mysql_version' => [
'type' => 'version', 'type' => 'version',
'warning' => (($database->isMySQL())? false : true), 'warning' => $database->isMySQL() ? false : true,
'description' => (($database->isMySQL())? '5.7.x - 8.0.x' : '10.x'), 'description' => $database->isMySQL() ? '5.7.x - 8.0.x' : '10.x',
'minimum' => (($database->isMySQL())? '5.7.0' : '10.1.0'), 'minimum' => $database->isMySQL() ? '5.7.0' : '10.1.0',
'maximum' => (($database->isMySQL())? '8.0.99' : '10.6.99'), 'maximum' => $database->isMySQL() ? '8.0.99' : '10.6.99',
], ],
'sort_buffer_size' => [ 'sort_buffer_size' => [
@ -259,6 +260,14 @@ if ($database->isInstalled()) {
'description' => '>2M', 'description' => '>2M',
], ],
]; ];
} else {
$db = [
'sort_buffer_size' => [
'type' => 'value',
'description' => '>2M',
],
];
}
/*foreach (App::getConfig()['db_options'] as $n => $v){ /*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>'), '_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, ]) => $php,
tr('DBMS (_TYPE_)', [ tr('DBMS (_TYPE_)', [
'_TYPE_' => $database->getType(), '_TYPE_' => method_exists($database, 'getType') ? $database->getType() : '',
] ) => $mysql, ] ) => $mysql,
tr('Percorsi di servizio') => $directories, tr('Percorsi di servizio') => $directories,
tr('File di servizio') => $files, tr('File di servizio') => $files,