aboutsummaryrefslogtreecommitdiffstats
path: root/include/category_default.inc.php
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2011-08-26 11:02:11 +0000
committerplegall <plg@piwigo.org>2011-08-26 11:02:11 +0000
commit5861549e51d5cbe9ef7b0f504d0ede06c8fcc676 (patch)
tree3a8ede6028a31d75fdbf891c467a6727a59fa91f /include/category_default.inc.php
parentcba3e53a0405a9aeaa4301ce636e4cf333750c40 (diff)
feature 1729: rewrite function get_thumbnail_title to provide a complete tooltip
to the template file. It include the name of the photo, details such as number of visits, number of comments, rating score, and the description. git-svn-id: http://piwigo.org/svn/trunk@11996 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--include/category_default.inc.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/include/category_default.inc.php b/include/category_default.inc.php
index 40e5b6814..1133c2b00 100644
--- a/include/category_default.inc.php
+++ b/include/category_default.inc.php
@@ -104,6 +104,11 @@ foreach ($pictures as $row)
array('start')
);
+ if (isset($nb_comments_of) )
+ {
+ $row['nb_comments'] = (int)@$nb_comments_of[$row['id']];
+ }
+
$tpl_var =
array(
'ID' => $row['id'],
@@ -166,9 +171,9 @@ foreach ($pictures as $row)
$tpl_var['NAME'] = $name;
- if ( isset($nb_comments_of) )
+ if (isset($row['nb_comments']))
{
- $tpl_var['NB_COMMENTS'] = (int)@$nb_comments_of[$row['id']];
+ $tpl_var['NB_COMMENTS'] = $row['nb_comments'];
}
$tpl_thumbnails_var[] = $tpl_var;