The delete link was pointing a removed page
git-svn-id: http://piwigo.org/svn/trunk@143 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
parent
a738daa814
commit
6f8ec206e1
1 changed files with 3 additions and 3 deletions
|
|
@ -37,10 +37,10 @@ if ( isset ( $_GET['delete'] ) and is_numeric( $_GET['delete'] ) )
|
|||
{
|
||||
$vtp->addSession( $sub, 'deletion' );
|
||||
$vtp->setVar( $sub, 'deletion.name', $row['name'] );
|
||||
$yes_url = './admin.php?page=group&delete='.$_GET['delete'];
|
||||
$yes_url = './admin.php?page=group_list&delete='.$_GET['delete'];
|
||||
$yes_url.= '&confirm=1';
|
||||
$vtp->setVar( $sub, 'deletion.yes_url', add_session_id( $yes_url ) );
|
||||
$no_url = './admin.php?page=group';
|
||||
$no_url = './admin.php?page=group_list';
|
||||
$vtp->setVar( $sub, 'deletion.no_url', add_session_id( $no_url ) );
|
||||
$vtp->closeSession( $sub, 'deletion' );
|
||||
}
|
||||
|
|
@ -124,7 +124,7 @@ while ( $row = mysql_fetch_array( $result ) )
|
|||
$vtp->setVar( $sub, 'group.name', $row['name'] );
|
||||
$url = './admin.php?page=group_perm&group_id='.$row['id'];
|
||||
$vtp->setVar( $sub, 'group.permission_url', add_session_id( $url ) );
|
||||
$url = './admin.php?page=group&delete='.$row['id'];
|
||||
$url = './admin.php?page=group_list&delete='.$row['id'];
|
||||
$vtp->setVar( $sub, 'group.deletion_url', add_session_id( $url ) );
|
||||
$vtp->closeSession( $sub, 'group' );
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue