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();