aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--include/functions_html.inc.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/functions_html.inc.php b/include/functions_html.inc.php
index 7581757bb..2daac2c83 100644
--- a/include/functions_html.inc.php
+++ b/include/functions_html.inc.php
@@ -583,10 +583,10 @@ function get_thumbnail_title($info, $title, $comment)
$title.= ' ('.implode(', ', $details).')';
}
- if (!empty($info['comment']))
+ if (!empty($comment))
{
- $info['comment'] = htmlspecialchars(strip_tags(trigger_event('render_element_description', $info['comment'])));
- $title.= ' '.substr($info['comment'], 0, 100).(strlen($info['comment']) > 100 ? '...' : '');
+ $comment = strip_tags($comment);
+ $title.= ' '.substr($comment, 0, 100).(strlen($comment) > 100 ? '...' : '');
}
$title = htmlspecialchars(strip_tags($title));