mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-06 08:43:31 +02:00
fixes #1570 render parent album name in related albums menu
This commit is contained in:
@@ -759,11 +759,11 @@ SELECT
|
|||||||
{
|
{
|
||||||
$index_of_cat[ $cat['id'] ] = $idx;
|
$index_of_cat[ $cat['id'] ] = $idx;
|
||||||
$cats[$idx]['LEVEL'] = substr_count($cat['global_rank'], '.') + 1;
|
$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 the category is directly linked to the items, we add an URL + counter
|
||||||
if (isset($common_cats[ $cat['id'] ]))
|
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'];
|
$cats[$idx]['count_images'] = $common_cats[ $cat['id'] ]['counter'];
|
||||||
|
|
||||||
$url_params = array();
|
$url_params = array();
|
||||||
|
|||||||
Reference in New Issue
Block a user