isValid() ) { $gBitSystem->setHttpStatus( 404 ); $gBitSystem->fatalError( tra( "No image exists with the given ID" ) ,'error.tpl', '' ); } $displayHash = array( 'perm_name' => 'p_fisheye_view' ); $gContent->invokeServices( 'content_display_function', $displayHash ); // Get the proper thumbnail size to display on this page reset($gContent->mStorage); $imageStorage = current($gContent->mStorage); $thumbSize = (!empty( $_REQUEST['size'] ) ? $_REQUEST['size'] : (!empty( $_COOKIE['fisheyeviewsize'] ) ? $_COOKIE['fisheyeviewsize'] : $gBitSystem->getConfig('fisheye_image_default_thumbnail_size', FISHEYE_DEFAULT_THUMBNAIL_SIZE))); // This is handled by LM so we can probably trim // $gContent->mInfo['display_url'] = $gContent->getThumbnailUrl( $thumbSize ); $gBitSystem->setBrowserTitle( $gContent->getTitle() ); $gBitSystem->display( $gContent->getRenderTemplate() , NULL, array( 'display_mode' => 'display' )); ?>