diff options
| author | Christian Fowler <spider@viovio.com> | 2006-11-08 08:02:53 +0000 |
|---|---|---|
| committer | Christian Fowler <spider@viovio.com> | 2006-11-08 08:02:53 +0000 |
| commit | be3dc6edb5ed4eaa184db590dcecf366ce0c0787 (patch) | |
| tree | 7953c679865de0a40f792f3832f3f38276ae313c /gallery_lookup_inc.php | |
| parent | c70dd941594e7fe7663e88fd11f15fe0af6fc043 (diff) | |
| download | fisheye-be3dc6edb5ed4eaa184db590dcecf366ce0c0787.tar.gz fisheye-be3dc6edb5ed4eaa184db590dcecf366ce0c0787.tar.bz2 fisheye-be3dc6edb5ed4eaa184db590dcecf366ce0c0787.zip | |
generalize lookup methods to allow modularization of gallery and item classes, and more generic getSourceFile() overridable method
Diffstat (limited to 'gallery_lookup_inc.php')
| -rw-r--r-- | gallery_lookup_inc.php | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/gallery_lookup_inc.php b/gallery_lookup_inc.php index 64c2bde..98e83cd 100644 --- a/gallery_lookup_inc.php +++ b/gallery_lookup_inc.php @@ -1,20 +1,16 @@ <?php /** - * @version $Header: /cvsroot/bitweaver/_bit_fisheye/gallery_lookup_inc.php,v 1.5 2005/08/30 22:17:54 squareing Exp $ + * @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; -if (!empty($_REQUEST['gallery_id']) && is_numeric($_REQUEST['gallery_id'])) { - $gContent = new FisheyeGallery( $_REQUEST['gallery_id'] ); - if( !$gContent->load() ) { - } -} elseif (!empty($_REQUEST['content_id']) && is_numeric($_REQUEST['content_id'])) { - $gContent = new FisheyeGallery( NULL, $_REQUEST['content_id'] ); - if( !$gContent->load() ) { - } +$lookup = array(); + +if( $gContent = FisheyeGallery::lookup( $_REQUEST ) ) { + $gContent->load(); } else { $gContent = new FisheyeGallery(); $galleryId = NULL; |
