Fix wrong template variable name when using content/image/single_with_height_allocation.tpl

This commit is contained in:
Hypolite Petovan 2023-10-07 05:18:33 -04:00
parent 6c9d3d42d3
commit 182a3a4663
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ class Image
$media = Renderer::replaceMacros(Renderer::getMarkupTemplate('content/image/single_with_height_allocation.tpl'), [
'$image' => $PostMediaImages[0],
'$allocated_height' => $PostMediaImages[0]->getAllocatedHeight(),
'$allocated_max_width' => ($PostMediaImages[0]->previewWidth ?? $PostMediaImages[0]->width) . 'px',
'$allocated_width' => ($PostMediaImages[0]->previewWidth ?? $PostMediaImages[0]->width) . 'px',
]);
}
} else {