mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-03 08:22:24 +02:00
- 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 git-svn-id: http://piwigo.org/svn/trunk@635 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -101,12 +101,12 @@ foreach (array('comment','dir','site_id') as $nullable)
|
||||
}
|
||||
|
||||
// Navigation path
|
||||
$current_category = get_cat_info($_GET['cat_id']);
|
||||
$url = PHPWG_ROOT_PATH.'admin.php?page=cat_list&parent_id=';
|
||||
$navigation = '<a class="" href="'.add_session_id(PHPWG_ROOT_PATH.'admin.php?page=cat_list').'">';
|
||||
$navigation.= $lang['home'].'</a> <span style="font-size:15px">→</span>';
|
||||
$navigation.= get_cat_display_name(
|
||||
$current_category['name'],
|
||||
|
||||
$navigation.= get_cat_display_name_cache(
|
||||
$category['uppercats'],
|
||||
' <span style="font-size:15px">→</span>',
|
||||
$url);
|
||||
|
||||
@@ -136,7 +136,6 @@ $template->assign_vars(array(
|
||||
'CATEGORIES_NAV'=>$navigation,
|
||||
'CAT_NAME'=>$category['name'],
|
||||
'CAT_COMMENT'=>$category['comment'],
|
||||
'CATEGORY_DIR'=>preg_replace('/\/$/', '', get_complete_dir($category['id'])),
|
||||
|
||||
$status=>'checked="checked"',
|
||||
$lock=>'checked="checked"',
|
||||
@@ -184,7 +183,11 @@ SELECT tn_ext,path
|
||||
|
||||
if (!empty($category['dir']))
|
||||
{
|
||||
$template->assign_block_vars('storage' ,array());
|
||||
$template->assign_block_vars(
|
||||
'storage',
|
||||
array('CATEGORY_DIR'=>preg_replace('/\/$/',
|
||||
'',
|
||||
get_complete_dir($category['id']))));
|
||||
$template->assign_block_vars('upload' ,array());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user