summaryrefslogtreecommitdiff
path: root/gallery_lookup_inc.php
diff options
context:
space:
mode:
authorMax Kremmel <xing@synapse.plus.com>2005-08-24 20:50:17 +0000
committerMax Kremmel <xing@synapse.plus.com>2005-08-24 20:50:17 +0000
commit45f31d03125b5d2b858e57ec02e8c7fca748180c (patch)
tree18714dc0416435f994f08d52e7e181c83bd9c5b8 /gallery_lookup_inc.php
parentb7e497184430d90001a1e8482c7d9719ec84d0be (diff)
downloadfisheye-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.php7
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);