mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-21 09:03:38 +02:00
- refactoring page['category'] before 1.7 release
page['category'] is not an id anymore, but an associative array of category info all of page['cat_xxx'] or page['uppercats'] merged into one simplifies calls to make_index_url give plugins a clean start for page variables for version 1.7 git-svn-id: http://piwigo.org/svn/trunk@1861 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -157,7 +157,7 @@ foreach ($pictures as $row)
|
||||
|
||||
if ($user['show_nb_comments']
|
||||
and isset($page['category'])
|
||||
and $page['cat_commentable'])
|
||||
and $page['category']['commentable'])
|
||||
{
|
||||
$query = '
|
||||
SELECT COUNT(*) AS nb_comments
|
||||
|
||||
Reference in New Issue
Block a user