Skip to content

Commit

Permalink
feature 2561: fix links on album administration screens
Browse files Browse the repository at this point in the history
git-svn-id: http://piwigo.org/svn/trunk@13025 68402e56-0260-453c-a942-63ccdbb3a9ee
  • Loading branch information
plegall committed Feb 3, 2012
1 parent 4264acc commit 14f3e13
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 8 deletions.
3 changes: 1 addition & 2 deletions admin.php
Expand Up @@ -233,10 +233,9 @@ function UC_name_compare($a, $b)
'site_manager', // delete site
'site_update', // ?only POST
'cat_list', // delete cat
'cat_modify', // delete cat; public/private; lock/unlock
'album', // delete cat; public/private; lock/unlock, permissions
'cat_move', // ?only POST
'cat_options', // ?only POST; public/private; lock/unlock
'cat_perm', // ?only POST
'picture_modify', // ?only POST; associate/dissociate
'user_perm',
'group_perm',
Expand Down
3 changes: 1 addition & 2 deletions admin/cat_list.php
Expand Up @@ -323,8 +323,7 @@ function save_categories_order($categories)

if ('private' == $category['status'])
{
$tpl_cat['U_MANAGE_PERMISSIONS']=
$base_url.'cat_perm&cat='.$category['id'];
$tpl_cat['U_MANAGE_PERMISSIONS'] = $base_url.'album-'.$category['id'].'-permissions';
}
$template->append('categories', $tpl_cat);
}
Expand Down
2 changes: 0 additions & 2 deletions admin/include/functions.php
Expand Up @@ -1996,10 +1996,8 @@ function get_active_menu($menu_page)

case 'album':
case 'cat_list':
case 'cat_modify':
case 'cat_move':
case 'cat_options':
case 'cat_perm':
case 'permalinks':
return 1;

Expand Down
3 changes: 1 addition & 2 deletions index.php
Expand Up @@ -180,8 +180,7 @@
{
$template->assign(
'U_EDIT',
get_root_url().'admin.php?page=cat_modify'
.'&cat_id='.$page['category']['id']
get_root_url().'admin.php?page=album-'.$page['category']['id']
);
}

Expand Down

0 comments on commit 14f3e13

Please sign in to comment.