From 81030a7ab40a481d6d8c93539162a4a035ea09d1 Mon Sep 17 00:00:00 2001 From: rvelices Date: Fri, 9 Mar 2007 03:37:56 +0000 Subject: plugins only: - fix in category_default.inc.php (action parameters were wrong if show_nb_comments was true) - refactor actions and events in picture.php in order to give more flexibility to plugins - added some variables in index.tpl (not used by pwg itself) to allow plugins to add their own content git-svn-id: http://piwigo.org/svn/trunk@1882 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/category_default.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/category_default.inc.php') diff --git a/include/category_default.inc.php b/include/category_default.inc.php index 48e16fa95..3c1ed5a6c 100644 --- a/include/category_default.inc.php +++ b/include/category_default.inc.php @@ -155,7 +155,7 @@ SELECT COUNT(*) AS nb_comments WHERE image_id = '.$row['id'].' AND validated = \'true\' ;'; - $row = mysql_fetch_array(pwg_query($query)); + list($row['nb_comments']) = mysql_fetch_array(pwg_query($query)); $template->assign_block_vars( 'thumbnails.line.thumbnail.nb_comments', array( -- cgit v1.2.3