related to #1931 Filetypes widget fully functionnal

This commit is contained in:
MatthieuLP
2023-07-11 10:59:56 +02:00
parent 7a132f1933
commit 1e944ca49a
3 changed files with 56 additions and 41 deletions
+4 -4
View File
@@ -313,8 +313,8 @@ SELECT
$my_search['fields']['cat']['words'] = array_intersect($my_search['fields']['cat']['words'], array_keys($fullname_of));
}
// if (isset($my_search['fields']['filetype']))
// {
if (isset($my_search['fields']['filetypes']))
{
$query = '
SELECT
SUBSTRING_INDEX(path, ".", -1) AS ext,
@@ -330,10 +330,10 @@ SELECT
' WHERE '
).'
GROUP BY ext
ORDER BY ext
ORDER BY counter DESC
;';
$template->assign('FILETYPES', query2array($query, 'ext', 'counter'));
// }
}
$template->assign(
array(