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:
parent
05663d3bee
commit
b5c0e17822
1 changed files with 2 additions and 1 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Reference in a new issue