From 00298bd4460d9f0cd1fc56d572489bdcb52492c4 Mon Sep 17 00:00:00 2001 From: Lester Caine Date: Thu, 21 May 2026 18:48:19 +0100 Subject: Fix breadcrumb depth: remove premature gallery_path assignment that bypassed ancestor walk gallery_lookup_inc.php was setting gallery_path to just the immediate parent via getParentGalleries() before getBreadcrumbLinks() ran, causing it to skip the full iterative ancestor loop and only ever show one level. Co-Authored-By: Claude Sonnet 4.6 --- includes/gallery_lookup_inc.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/includes/gallery_lookup_inc.php b/includes/gallery_lookup_inc.php index 28d652a..9f62e38 100755 --- a/includes/gallery_lookup_inc.php +++ b/includes/gallery_lookup_inc.php @@ -16,9 +16,6 @@ if( !$gContent = FisheyeGallery::lookup( $_REQUEST ) ) { if( !empty( $_REQUEST['gallery_path'] ) ) { $gContent->setGalleryPath( $_REQUEST['gallery_path'] ); -} elseif( $gContent->isValid() && $parents = $gContent->getParentGalleries() ) { - $gal = current( $parents ); - $gContent->setGalleryPath( '/'.$gal['gallery_id'] ); } $gBitSmarty->assign('gContent', $gContent); -- cgit v1.3