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

    r1755 r1861  
    33// | PhpWebGallery - a PHP based picture gallery                           |
    44// | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net |
    5 // | Copyright (C) 2003-2005 PhpWebGallery Team - http://phpwebgallery.net |
    6 // +-----------------------------------------------------------------------+
    7 // | branch        : BSF (Best So Far)
    8 // | file          : $RCSfile$
     5// | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net |
     6// +-----------------------------------------------------------------------+
     7// | file          : $Id$
    98// | last update   : $Date$
    109// | last modifier : $Author$
     
    173172  $navigation.= $conf['level_separator'];
    174173
    175   $current_category = get_cat_info($_GET['parent_id']);
    176 
    177   $navigation.= get_cat_display_name(
    178     $current_category['name'],
     174  $navigation.= get_cat_display_name_from_id(
     175    $_GET['parent_id'],
    179176    $base_url.'&parent_id=',
    180177    false
     
    278275      'U_JUMPTO'   => make_index_url(
    279276        array(
    280           'category' => $category['id'],
    281           'cat_name' => $category['name'],
     277          'category' => $category
    282278          )
    283279        ),
Note: See TracChangeset for help on using the changeset viewer.