From 286ad99d2aa0c4d11354f1368472cc1ebb939b70 Mon Sep 17 00:00:00 2001 From: Pek5892 Date: Thu, 14 Mar 2024 14:30:39 +0100 Subject: [PATCH 1/2] =?UTF-8?q?Fix=20filtro=20per=20data=20attivit=C3=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Util/Query.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Util/Query.php b/src/Util/Query.php index 2d503d850..99a7680ba 100755 --- a/src/Util/Query.php +++ b/src/Util/Query.php @@ -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.' %')); From 180422cb6f1b2fab6b9004a219911cd0d1396940 Mon Sep 17 00:00:00 2001 From: Pek5892 Date: Thu, 14 Mar 2024 14:45:29 +0100 Subject: [PATCH 2/2] Fix minore --- core.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/core.php b/core.php index 1ecb2d590..17164ba84 100755 --- a/core.php +++ b/core.php @@ -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')); } \ No newline at end of file