diff options
author | rvelices <rv-github@modusoptimus.com> | 2007-02-28 03:07:12 +0000 |
---|---|---|
committer | rvelices <rv-github@modusoptimus.com> | 2007-02-28 03:07:12 +0000 |
commit | ea56d7b2ac1d41ea19b5fb45843c839e30a0b37b (patch) | |
tree | 5f55c108b1a808867d44db2b6ebcf0ad573874b6 /comments.php | |
parent | 30e259904cc38172b2b730455009455675f0d8f5 (diff) |
feature 657: permalinks for categories
git-svn-id: http://piwigo.org/svn/trunk@1866 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'comments.php')
-rw-r--r-- | comments.php | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/comments.php b/comments.php index 9a41dcb2b..b46ee3f8e 100644 --- a/comments.php +++ b/comments.php @@ -369,17 +369,12 @@ SELECT id, name, file, path, tn_ext } // retrieving category informations - $categories = array(); $query = ' -SELECT id, name, uppercats +SELECT id, name, permalink, uppercats FROM '.CATEGORIES_TABLE.' WHERE id IN ('.implode(',', $category_ids).') ;'; - $result = pwg_query($query); - while ($row = mysql_fetch_assoc($result)) - { - $categories[$row['id']] = $row; - } + $categories = hash_from_query($query, 'id'); foreach ($comments as $comment) { |