mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-06 16:53:34 +02:00
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:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user