update viewImagePatch (#2370)

This commit is contained in:
Andrew Bauer 2018-12-28 09:38:39 -06:00 committed by Isaac Connor
parent 2fbc1481f8
commit fb37fc48e1
1 changed files with 1 additions and 7 deletions

View File

@ -845,13 +845,7 @@ function getImageSrc( $event, $frame, $scale=SCALE_BASE, $captureOnly=false, $ov
} }
function viewImagePath( $path, $querySep='&' ) { function viewImagePath( $path, $querySep='&' ) {
if ( strncmp( $path, ZM_DIR_IMAGES, strlen(ZM_DIR_IMAGES) ) == 0 ) {
// Thumbnails
return( $path );
} elseif ( strpos( ZM_DIR_EVENTS, '/' ) === 0 ) {
return( '?view=image'.$querySep.'path='.$path ); return( '?view=image'.$querySep.'path='.$path );
}
return( ZM_DIR_EVENTS.'/'.$path );
} }
function createListThumbnail( $event, $overwrite=false ) { function createListThumbnail( $event, $overwrite=false ) {