update viewImagePatch (#2370)
This commit is contained in:
parent
2fbc1481f8
commit
fb37fc48e1
|
@ -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 ) {
|
return( '?view=image'.$querySep.'path='.$path );
|
||||||
// Thumbnails
|
|
||||||
return( $path );
|
|
||||||
} elseif ( strpos( ZM_DIR_EVENTS, '/' ) === 0 ) {
|
|
||||||
return( '?view=image'.$querySep.'path='.$path );
|
|
||||||
}
|
|
||||||
return( ZM_DIR_EVENTS.'/'.$path );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function createListThumbnail( $event, $overwrite=false ) {
|
function createListThumbnail( $event, $overwrite=false ) {
|
||||||
|
|
Loading…
Reference in New Issue