diff options
author | rvelices <rv-github@modusoptimus.com> | 2007-03-09 03:37:56 +0000 |
---|---|---|
committer | rvelices <rv-github@modusoptimus.com> | 2007-03-09 03:37:56 +0000 |
commit | 81030a7ab40a481d6d8c93539162a4a035ea09d1 (patch) | |
tree | 69cf4d569a7185a000f896ca9e5a91020bb46b94 /include | |
parent | f266c3b4cb4dd517eb4ccf7aa4e5a46936e5ccff (diff) |
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
Diffstat (limited to 'include')
-rw-r--r-- | include/category_default.inc.php | 2 |
1 files changed, 1 insertions, 1 deletions
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( |