Changeset 1861 for trunk/category.php


Ignore:
Timestamp:
Feb 27, 2007, 2:56:16 AM (18 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/category.php

    r1846 r1861  
    3939  {
    4040    $url_params['section'] = 'categories';
    41     $url_params['category'] = $_GET['cat'];
    42     $result = get_cat_info($url_params['category']);
     41    $result = get_cat_info( $_GET['cat'] );
    4342    if ( !empty($result) )
    44       $url_params['cat_name'] = $result['name'];
     43    {
     44      $url_params['category'] = $result;
     45    }
    4546  }
    4647  elseif ( in_array($_GET['cat'],
Note: See TracChangeset for help on using the changeset viewer.