Skip to content

Commit

Permalink
merge r4902 from branch 2.0 to trunk
Browse files Browse the repository at this point in the history
bug 1423 fixed: support for ExtendedDescription (and all the ones using the
"render_category_name" event) in category names.


git-svn-id: http://piwigo.org/svn/trunk@4903 68402e56-0260-453c-a942-63ccdbb3a9ee
  • Loading branch information
plegall committed Feb 17, 2010
1 parent a8539c9 commit b73d129
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions include/ws_functions.inc.php
Expand Up @@ -427,6 +427,14 @@ function ws_categories_getList($params, &$service)
$row[$key] = (int)$row[$key];
}

$row['name'] = strip_tags(
trigger_event(
'render_category_name',
$row['name'],
'ws_categories_getList'
)
);

array_push($cats, $row);
}
usort($cats, 'global_rank_compare');
Expand Down Expand Up @@ -485,6 +493,13 @@ function ws_categories_getAdminList($params, &$service)
{
$id = $row['id'];
$row['nb_images'] = isset($nb_images_of[$id]) ? $nb_images_of[$id] : 0;
$row['name'] = strip_tags(
trigger_event(
'render_category_name',
$row['name'],
'ws_categories_getAdminList'
)
);
array_push($cats, $row);
}

Expand Down

0 comments on commit b73d129

Please sign in to comment.