added template variables to photo. added better getParent and getGallery to GalleryFile, for approval processes
This commit is contained in:
parent
be8ce29f57
commit
39c95cb25b
2 changed files with 49 additions and 5 deletions
|
|
@ -224,9 +224,12 @@ sub getTemplateVars {
|
|||
|
||||
### Download resolutions
|
||||
for my $resolution ( @{ $self->getResolutions } ) {
|
||||
my $downloadUrl = $self->getStorageLocation->getPathFrag( $resolution );
|
||||
push @{ $var->{ resolutions_loop } }, {
|
||||
url_download => $self->getStorageLocation->getPathFrag($resolution)
|
||||
resolution => $resolution,
|
||||
url_download => $downloadUrl,
|
||||
};
|
||||
$var->{ "resolution_" . $resolution } = $downloadUrl;
|
||||
}
|
||||
|
||||
### Format exif vars
|
||||
|
|
@ -392,7 +395,7 @@ sub updateExifDataFromFile {
|
|||
}
|
||||
|
||||
# Remove other, pointless keys
|
||||
for my $key ( qw( Directory ) ) {
|
||||
for my $key ( qw( Directory NativeDigest ) ) {
|
||||
delete $info->{ $key };
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue