Changeset 1866 for trunk/comments.php


Ignore:
Timestamp:
Feb 28, 2007, 4:07:12 AM (17 years ago)
Author:
rvelices
Message:

feature 657: permalinks for categories

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/comments.php

    r1861 r1866  
    370370
    371371  // retrieving category informations
    372   $categories = array();
    373372  $query = '
    374 SELECT id, name, uppercats
     373SELECT id, name, permalink, uppercats
    375374  FROM '.CATEGORIES_TABLE.'
    376375  WHERE id IN ('.implode(',', $category_ids).')
    377376;';
    378   $result = pwg_query($query);
    379   while ($row = mysql_fetch_assoc($result))
    380   {
    381     $categories[$row['id']] = $row;
    382   }
     377  $categories = hash_from_query($query, 'id');
    383378
    384379  foreach ($comments as $comment)
Note: See TracChangeset for help on using the changeset viewer.