Permalink
Browse files

feature:2552

Apply trigger render_element_description for thumbnail title (for picture description)

git-svn-id: http://piwigo.org/svn/trunk@12870 68402e56-0260-453c-a942-63ccdbb3a9ee
  • Loading branch information...
patdenice
patdenice committed Jan 10, 2012
1 parent ce51c1c commit 758f9dd195e025c4140eab7d4c0fd8f8ba28711a
Showing with 2 additions and 1 deletion.
  1. +2 −1 include/functions.inc.php
@@ -848,7 +848,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));

0 comments on commit 758f9dd

Please sign in to comment.