fixes #1570 render parent album name in related albums menu

This commit is contained in:
plegall 2021-11-25 11:58:12 +01:00
parent 0ad1d28941
commit ce7de25f77

View file

@ -759,11 +759,11 @@ SELECT
{
$index_of_cat[ $cat['id'] ] = $idx;
$cats[$idx]['LEVEL'] = substr_count($cat['global_rank'], '.') + 1;
$cats[$idx]['name'] = trigger_change('render_category_name', $cat['name'], $cat);
// if the category is directly linked to the items, we add an URL + counter
if (isset($common_cats[ $cat['id'] ]))
{
$cats[$idx]['name'] = trigger_change('render_category_name', $cat['name'], $cat);
$cats[$idx]['count_images'] = $common_cats[ $cat['id'] ]['counter'];
$url_params = array();