From 939c01e410286691fd80029bed811406ede3f1e5 Mon Sep 17 00:00:00 2001 From: plegall Date: Fri, 19 Aug 2005 17:00:20 +0000 Subject: - improvement : standardization of categories navigation bar on top of administration screen element_set_(global|unit), cat_modify, cat_list, cat_perm. - new : direct link to admin/cat_modify from category.php. git-svn-id: http://piwigo.org/svn/trunk@834 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin/cat_list.php | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'admin/cat_list.php') diff --git a/admin/cat_list.php b/admin/cat_list.php index e38d5b4c9..4a66aee12 100644 --- a/admin/cat_list.php +++ b/admin/cat_list.php @@ -61,8 +61,14 @@ function save_categories_order($categories) // +-----------------------------------------------------------------------+ // | initialization | // +-----------------------------------------------------------------------+ + $categories = array(); -$navigation = $lang['home']; + +$base_url = PHPWG_ROOT_PATH.'admin.php?page=cat_list'; +$navigation = ''; +$navigation.= $lang['home']; +$navigation.= ''; + // +-----------------------------------------------------------------------+ // | virtual categories management | // +-----------------------------------------------------------------------+ @@ -195,16 +201,13 @@ while ($row = mysql_fetch_assoc($result)) $categories[$row['rank']] = $row; $categories[$row['rank']]['nb_subcats'] = 0; } + // +-----------------------------------------------------------------------+ // | Navigation path | // +-----------------------------------------------------------------------+ + if (isset($_GET['parent_id'])) { - $base_url = PHPWG_ROOT_PATH.'admin.php?page=cat_list'; - - $navigation = ''; - $navigation.= $lang['home']; - $navigation.= ''; $navigation.= $conf['level_separator']; $current_category = get_cat_info($_GET['parent_id']); -- cgit v1.2.3