aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpatdenice <patdenice@piwigo.org>2012-01-10 15:26:42 +0000
committerpatdenice <patdenice@piwigo.org>2012-01-10 15:26:42 +0000
commit758f9dd195e025c4140eab7d4c0fd8f8ba28711a (patch)
tree8491628cac8799a35d8d3e5df112efe6a469a2e6
parentce51c1cc56e8812fb7f24c34c9fac1a7e11a0675 (diff)
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
Diffstat (limited to '')
-rw-r--r--include/functions.inc.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/functions.inc.php b/include/functions.inc.php
index 0871f8110..85cf7c902 100644
--- a/include/functions.inc.php
+++ b/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));