From 12ec1dcf5b47eb1df9e2a9a5ccef497d85090a31 Mon Sep 17 00:00:00 2001 From: plegall Date: Fri, 26 Aug 2011 12:09:05 +0000 Subject: feature 1729: avoid too long description in tooltips git-svn-id: http://piwigo.org/svn/trunk@11997 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/functions.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/functions.inc.php') diff --git a/include/functions.inc.php b/include/functions.inc.php index ae29267d7..fb0671e6b 100644 --- a/include/functions.inc.php +++ b/include/functions.inc.php @@ -815,7 +815,7 @@ function get_thumbnail_title($info) if (!empty($info['comment'])) { - $title.= ' '.$info['comment']; + $title.= ' '.substr($info['comment'], 0, 100).'...'; } $title = strip_tags($title); -- cgit v1.2.3