mirror of
https://github.com/friendica/friendica
synced 2024-12-22 23:20:16 +00:00
Fix wrong template variable name when using content/image/single_with_height_allocation.tpl
This commit is contained in:
parent
6c9d3d42d3
commit
182a3a4663
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue