diff options
| author | Max Kremmel <xing@synapse.plus.com> | 2005-08-24 20:50:17 +0000 |
|---|---|---|
| committer | Max Kremmel <xing@synapse.plus.com> | 2005-08-24 20:50:17 +0000 |
| commit | 45f31d03125b5d2b858e57ec02e8c7fca748180c (patch) | |
| tree | 18714dc0416435f994f08d52e7e181c83bd9c5b8 /gallery_lookup_inc.php | |
| parent | b7e497184430d90001a1e8482c7d9719ec84d0be (diff) | |
| download | fisheye-45f31d03125b5d2b858e57ec02e8c7fca748180c.tar.gz fisheye-45f31d03125b5d2b858e57ec02e8c7fca748180c.tar.bz2 fisheye-45f31d03125b5d2b858e57ec02e8c7fca748180c.zip | |
synch recent changes from R1 to HEAD
Diffstat (limited to 'gallery_lookup_inc.php')
| -rw-r--r-- | gallery_lookup_inc.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gallery_lookup_inc.php b/gallery_lookup_inc.php index 86344d9..d827623 100644 --- a/gallery_lookup_inc.php +++ b/gallery_lookup_inc.php @@ -1,6 +1,6 @@ <?php /** - * @version $Header: /cvsroot/bitweaver/_bit_fisheye/gallery_lookup_inc.php,v 1.3 2005/08/01 18:40:07 squareing Exp $ + * @version $Header: /cvsroot/bitweaver/_bit_fisheye/gallery_lookup_inc.php,v 1.4 2005/08/24 20:50:17 squareing Exp $ * @package fisheye * @subpackage functions */ @@ -22,6 +22,11 @@ if (!empty($_REQUEST['gallery_id']) && is_numeric($_REQUEST['gallery_id'])) { if( !empty( $_REQUEST['gallery_path'] ) ) { $gContent->setGalleryPath( $_REQUEST['gallery_path'] ); +} else { + if( $parents = $gContent->getParentGalleries() ) { + $gal = current( $parents ); + $gContent->setGalleryPath( '/'.$gal['gallery_id'] ); + } } $gBitSmarty->assign_by_ref('gContent', $gContent); |
