From 10a8edbb3d91777e53b6725f04d58f458ab1dab5 Mon Sep 17 00:00:00 2001 From: z0rglub Date: Mon, 15 Sep 2003 21:48:21 +0000 Subject: [PATCH] When we use thumbnails for exploring sub-categories, the categories in the left menu open with a difference of 1 page git-svn-id: http://piwigo.org/svn/trunk@120 68402e56-0260-453c-a942-63ccdbb3a9ee --- category.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/category.php b/category.php index 1db16ffa0..127d133bc 100644 --- a/category.php +++ b/category.php @@ -378,6 +378,10 @@ elseif ( ( isset( $page['cat'] ) $page['expand'] = implode( ',', $page['tab_expand'] ); } $url_link.= '&expand='.$page['expand']; + // we add the category to explore in the expand list + if ( $page['expand'] != '' ) $url_link.= ','; + $url_link.= $subcat_id; + list( $year,$month,$day ) = explode( '-', $subcat_infos['date_last'] ); $date = mktime( 0, 0, 0, $month, $day, $year );