diff options
| author | Lester Caine <lester@lsces.co.uk> | 2026-05-21 18:48:19 +0100 |
|---|---|---|
| committer | Lester Caine <lester@lsces.co.uk> | 2026-05-21 18:48:19 +0100 |
| commit | 00298bd4460d9f0cd1fc56d572489bdcb52492c4 (patch) | |
| tree | 52c041de88df4dbc79d4e041c918d6c5ae158249 | |
| parent | b7f5a1a6b354d7eefaecb828a57d9d073654ac50 (diff) | |
| download | fisheye-00298bd4460d9f0cd1fc56d572489bdcb52492c4.tar.gz fisheye-00298bd4460d9f0cd1fc56d572489bdcb52492c4.tar.bz2 fisheye-00298bd4460d9f0cd1fc56d572489bdcb52492c4.zip | |
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 <noreply@anthropic.com>
| -rwxr-xr-x | includes/gallery_lookup_inc.php | 3 |
1 files changed, 0 insertions, 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); |
