From 47512ce6a64fa356214c162a8313480c6aed41d2 Mon Sep 17 00:00:00 2001 From: rvelices Date: Tue, 27 Feb 2007 01:56:16 +0000 Subject: - 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 --- comments.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'comments.php') diff --git a/comments.php b/comments.php index 0c0735447..9a41dcb2b 100644 --- a/comments.php +++ b/comments.php @@ -205,7 +205,7 @@ $template->assign_block_vars( )); $query = ' -SELECT id,name,uppercats,global_rank +SELECT id, name, uppercats, global_rank FROM '.CATEGORIES_TABLE.' '.get_sql_condition_FandF ( @@ -398,8 +398,7 @@ SELECT id, name, uppercats // link to the full size picture $url = make_picture_url( array( - 'category' => $comment['category_id'], - 'cat_name' => $categories[ $comment['category_id']] ['name'], + 'category' => $categories[ $comment['category_id'] ], 'image_id' => $comment['image_id'], 'image_file' => $elements[$comment['image_id']]['file'], ) -- cgit v1.2.3