From ce7de25f77e99ea182f51c69b2b2e898f259aecf Mon Sep 17 00:00:00 2001 From: plegall Date: Thu, 25 Nov 2021 11:58:12 +0100 Subject: [PATCH] fixes #1570 render parent album name in related albums menu --- include/functions_category.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/functions_category.inc.php b/include/functions_category.inc.php index 6d4a0b595..ce9e85595 100644 --- a/include/functions_category.inc.php +++ b/include/functions_category.inc.php @@ -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();