merge r12870 from trunk to branch 2.3

feature:2552
Apply trigger render_element_description for thumbnail title (for picture description)

git-svn-id: http://piwigo.org/svn/branches/2.3@12871 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
patdenice 2012-01-10 15:31:09 +00:00
parent 05663d3bee
commit b5c0e17822

View file

@ -820,7 +820,8 @@ function get_thumbnail_title($info)
if (!empty($info['comment']))
{
$title.= ' '.substr($info['comment'], 0, 100).'...';
$info['comment'] = trigger_event('render_element_description', $info['comment']);
$title.= ' '.substr($info['comment'], 0, 100).(strlen($info['comment']) > 100 ? '...' : '');
}
$title = htmlspecialchars(strip_tags($title));