This commit is contained in:
MatteoPistorello 2024-03-14 17:35:02 +01:00
commit b042c567ef
2 changed files with 4 additions and 5 deletions

View File

@ -265,6 +265,9 @@ if (!API\Response::isAPIRequest()) {
}
Permissions::check();
// Impostazione della lingua
App::setLang(setting('Lingua'));
}
// Retrocompatibilità
@ -302,8 +305,4 @@ 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

@ -230,7 +230,7 @@ class Query
if ($anno != '' && $giorno != '' && $mese != '') {
if ($data != "'1970-01-01'") {
$search_filters[] = $search_query.' = '.$data.'';
$search_filters[] = 'date('.$search_query.') = '.$data.'';
}
} else {
$search_filters[] = ($search_query.' = '.prepare($value).' OR '.$search_query.' LIKE '.prepare('% '.$value).' OR '.$search_query.' LIKE '.prepare($value.' %').' OR '.$search_query.' LIKE '.prepare('% '.$value.' %'));