Changeset 1861 for trunk/comments.php


Ignore:
Timestamp:
Feb 27, 2007, 2:56:16 AM (17 years ago)
Author:
rvelices
Message:
  • refactoring pagecategory before 1.7 release

pagecategory is not an id anymore, but an associative array of category info
all of pagecat_xxx or pageuppercats merged into one
simplifies calls to make_index_url
give plugins a clean start for page variables for version 1.7

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/comments.php

    r1849 r1861  
    206206
    207207$query = '
    208 SELECT id,name,uppercats,global_rank
     208SELECT id, name, uppercats, global_rank
    209209  FROM '.CATEGORIES_TABLE.'
    210210'.get_sql_condition_FandF
     
    399399    $url = make_picture_url(
    400400            array(
    401               'category' => $comment['category_id'],
    402               'cat_name' => $categories[ $comment['category_id']] ['name'],
     401              'category' => $categories[ $comment['category_id'] ],
    403402              'image_id' => $comment['image_id'],
    404403              'image_file' => $elements[$comment['image_id']]['file'],
Note: See TracChangeset for help on using the changeset viewer.