aboutsummaryrefslogtreecommitdiffstats
path: root/include/functions.inc.php
diff options
context:
space:
mode:
authorpatdenice <patdenice@piwigo.org>2012-01-10 15:31:09 +0000
committerpatdenice <patdenice@piwigo.org>2012-01-10 15:31:09 +0000
commitb5c0e17822cc58f7052c92ecc34ba054c6aeff44 (patch)
treef243f81b904ba47c4f0af4334d27f39410fd1406 /include/functions.inc.php
parent05663d3bee70006afd90d16e256dc405e6e8c311 (diff)
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
Diffstat (limited to 'include/functions.inc.php')
-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 e69d5ced6..f6b8303b6 100644
--- a/include/functions.inc.php
+++ b/include/functions.inc.php
@@ -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));