Ignore:
Timestamp:
Dec 5, 2004, 10:28:40 PM (19 years ago)
Author:
plg
Message:
  • on picture.php, related categories under the element are displayed in global_rank order
  • when adding a new virtual category, initializes its global_rank
  • bug fixed : in admin/cat_list, false next rank
  • in admin/cat_modify, complete directory is calculated only if category is not virtual
  • admin/picture_modify rewritten : graphically nearer to admin/cat_modify, virtual associations are back
  • update_category partially rewritten : take an array of categories in parameter, becomes optionnaly recursive, use the set_random_representant function, set a random representant for categories with elements and no representant
  • bug fixed : on a search results screen, elements belonging to more than 1 category were shown more than once
  • bug fixed : in admin/cat_modify, changing a value in a textefield and hitting enter was setting a new random representant
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/cat_modify.php

    r633 r635  
    102102
    103103// Navigation path
    104 $current_category = get_cat_info($_GET['cat_id']);
    105104$url = PHPWG_ROOT_PATH.'admin.php?page=cat_list&parent_id=';
    106105$navigation = '<a class="" href="'.add_session_id(PHPWG_ROOT_PATH.'admin.php?page=cat_list').'">';
    107106$navigation.= $lang['home'].'</a> <span style="font-size:15px">&rarr;</span>';
    108 $navigation.= get_cat_display_name(
    109   $current_category['name'],
     107
     108$navigation.= get_cat_display_name_cache(
     109  $category['uppercats'],
    110110  ' <span style="font-size:15px">&rarr;</span>',
    111111  $url);
     
    137137  'CAT_NAME'=>$category['name'],
    138138  'CAT_COMMENT'=>$category['comment'],
    139   'CATEGORY_DIR'=>preg_replace('/\/$/', '', get_complete_dir($category['id'])),
    140139 
    141140  $status=>'checked="checked"',
     
    185184if (!empty($category['dir']))
    186185{
    187   $template->assign_block_vars('storage' ,array());
     186  $template->assign_block_vars(
     187    'storage',
     188    array('CATEGORY_DIR'=>preg_replace('/\/$/',
     189                                       '',
     190                                       get_complete_dir($category['id']))));
    188191  $template->assign_block_vars('upload' ,array());
    189192}
Note: See TracChangeset for help on using the changeset viewer.