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/admin/cat_list.php

    r1861 r1866  
    139139
    140140// +-----------------------------------------------------------------------+
    141 // |                           Cache management                            |
    142 // +-----------------------------------------------------------------------+
    143 $query = '
    144 SELECT *
    145   FROM '.CATEGORIES_TABLE;
    146 if (!isset($_GET['parent_id']))
    147 {
    148   $query.= '
    149   WHERE id_uppercat IS NULL';
    150 }
    151 else
    152 {
    153   $query.= '
    154   WHERE id_uppercat = '.$_GET['parent_id'];
    155 }
    156 $query.= '
    157   ORDER BY rank ASC
    158 ;';
    159 $result = pwg_query($query);
    160 while ($row = mysql_fetch_assoc($result))
    161 {
    162   $categories[$row['rank']] = $row;
    163   $categories[$row['rank']]['nb_subcats'] = 0;
    164 }
    165 
    166 // +-----------------------------------------------------------------------+
    167141// |                            Navigation path                            |
    168142// +-----------------------------------------------------------------------+
     
    210184
    211185$query = '
    212 SELECT id, name, dir, rank, nb_images, status
     186SELECT id, name, permalink, dir, rank, nb_images, status
    213187  FROM '.CATEGORIES_TABLE;
    214188if (!isset($_GET['parent_id']))
Note: See TracChangeset for help on using the changeset viewer.