mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-10 02:33:02 +02:00
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
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user