Skip to content

Commit

Permalink
Fixed bug with missing image captions
Browse files Browse the repository at this point in the history
  • Loading branch information
ausi committed Feb 22, 2019
1 parent adfdbbb commit 6dcfbbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Module/Slider.php
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ protected function compile()
foreach ($images as $key => $image) {
$newImage = new \stdClass();
$image['size'] = isset($this->imgSize) ? $this->imgSize : $this->size;
$this->addImageToTemplate($newImage, $image);
$this->addImageToTemplate($newImage, $image, null, null, \FilesModel::findByPk($image['id']));
if ($this->rsts_navType === 'thumbs') {
$newImage->thumb = new \stdClass;
$image['size'] = $this->rsts_thumbs_imgSize;
Expand Down

0 comments on commit 6dcfbbb

Please sign in to comment.