diff options
author | z0rglub <z0rglub@piwigo.org> | 2003-09-15 21:48:21 +0000 |
---|---|---|
committer | z0rglub <z0rglub@piwigo.org> | 2003-09-15 21:48:21 +0000 |
commit | 10a8edbb3d91777e53b6725f04d58f458ab1dab5 (patch) | |
tree | 9001b2546dcb146a268d1917ab490a0520b05ae1 /category.php | |
parent | 5257091c37867829e2695f07a8837401061a2658 (diff) |
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
Diffstat (limited to 'category.php')
-rw-r--r-- | category.php | 4 |
1 files changed, 4 insertions, 0 deletions
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 ); |