diff options
Diffstat (limited to '')
-rw-r--r-- | admin/cat_list.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/admin/cat_list.php b/admin/cat_list.php index 474688b3e..cc4d88929 100644 --- a/admin/cat_list.php +++ b/admin/cat_list.php @@ -264,6 +264,7 @@ function display_cat_manager( $id_uppercat, $indent, $vtp->setVar( $sub, 'cat.class', $class ); $vtp->setVar( $sub, 'cat.indent', $indent ); $vtp->setVar( $sub, 'cat.name', $row['name'] ); + $vtp->setVar( $sub, 'cat.id', $row['id'] ); if ( $row['dir'] != '' ) { $vtp->addSession( $sub, 'storage' ); @@ -298,6 +299,7 @@ function display_cat_manager( $id_uppercat, $indent, if ( $row['rank'] != $min_rank ) { $vtp->addSession( $sub, 'up' ); + $vtp->setVar( $sub, 'up.id', $row['id'] ); $url = add_session_id( './admin.php?page=cat_list&up='.$row['id'] ); $vtp->setVar( $sub, 'up.up_url', $url ); $vtp->closeSession( $sub, 'up' ); @@ -305,6 +307,7 @@ function display_cat_manager( $id_uppercat, $indent, else if ( $min_rank != $max_rank ) { $vtp->addSession( $sub, 'no_up' ); + $vtp->setVar( $sub, 'no_up.id', $row['id'] ); $url = add_session_id( './admin.php?page=cat_list&last='.$row['id']); $vtp->setVar( $sub, 'no_up.last_url', $url ); $vtp->closeSession( $sub, 'no_up' ); @@ -312,6 +315,7 @@ function display_cat_manager( $id_uppercat, $indent, if ( $row['rank'] != $max_rank ) { $vtp->addSession( $sub, 'down' ); + $vtp->setVar( $sub, 'down.id', $row['id'] ); $url = add_session_id( './admin.php?page=cat_list&down='.$row['id']); $vtp->setVar( $sub, 'down.down_url', $url ); $vtp->closeSession( $sub, 'down' ); @@ -319,6 +323,7 @@ function display_cat_manager( $id_uppercat, $indent, else if ( $min_rank != $max_rank ) { $vtp->addSession( $sub, 'no_down' ); + $vtp->setVar( $sub, 'no_down.id', $row['id'] ); $url = add_session_id('./admin.php?page=cat_list&first='.$row['id']); $vtp->setVar( $sub, 'no_down.first_url', $url ); $vtp->closeSession( $sub, 'no_down' ); |