issue #1955 search in this set (an album or some tags)

This commit is contained in:
plegall
2023-08-12 16:49:42 +02:00
parent 3c5c62869a
commit 2c3b6ba6ec
12 changed files with 100 additions and 2 deletions
+22
View File
@@ -416,6 +416,28 @@ SELECT
*/
}
if ('categories' == $page['section'] and isset($page['category']) and !isset($page['combined_categories']))
{
$template->assign(
array(
'SEARCH_IN_SET_BUTTON' => $conf['index_search_in_set_button'],
'SEARCH_IN_SET_ACTION' => $conf['index_search_in_set_action'],
'SEARCH_IN_SET_URL' => get_root_url().'search.php?cat_id='.$page['category']['id'],
)
);
}
if (isset($page['body_data']['tag_ids']))
{
$template->assign(
array(
'SEARCH_IN_SET_BUTTON' => $conf['index_search_in_set_button'],
'SEARCH_IN_SET_ACTION' => $conf['index_search_in_set_action'],
'SEARCH_IN_SET_URL' => get_root_url().'search.php?tag_id='.implode(',', $page['body_data']['tag_ids']),
)
);
}
if (isset($page['category']) and is_admin() and $conf['index_edit_icon'])
{
$template->assign(