blob: 98e83cd7f02f5a9f49b305a15bc017c549142f78 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
<?php
/**
* @version $Header: /cvsroot/bitweaver/_bit_fisheye/gallery_lookup_inc.php,v 1.6 2006/11/08 08:01:37 spiderr Exp $
* @package fisheye
* @subpackage functions
*/
global $gContent;
$lookup = array();
if( $gContent = FisheyeGallery::lookup( $_REQUEST ) ) {
$gContent->load();
} else {
$gContent = new FisheyeGallery();
$galleryId = NULL;
}
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_by_ref('gContent', $gContent);
$gBitSmarty->assign_by_ref('galleryId', $gContent->mGalleryId);
?>
|