Fix rendering of the carousel inside of a Story. Fixes bug #12386

This commit is contained in:
Colin Kuskie 2012-09-20 14:00:57 -07:00
parent 50c7634800
commit e046e5a8ce
8 changed files with 55 additions and 4 deletions

View file

@ -966,10 +966,11 @@ sub viewTemplateVariables {
};
++$photoCounter;
}
$var->{hasPhotos} = $photoCounter;
$var->{singlePhoto} = $photoCounter == 1;
$var->{canEdit} = $self->canEdit;
$var->{photoWidth} = $archive->get('photoWidth');
$var->{hasPhotos} = $photoCounter;
$var->{singlePhoto} = $photoCounter == 1;
$var->{canEdit} = $self->canEdit;
$var->{photoWidth} = $archive->get('photoWidth');
$var->{photoHeight} = $archive->get('photoHeight');
return $var;
}