From: Hypolite Petovan Date: Sat, 7 Oct 2023 09:18:33 +0000 (-0400) Subject: Fix wrong template variable name when using content/image/single_with_height_allocati... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=182a3a4663571e05d341ee7a44cc447877f2cfb9;p=friendica.git Fix wrong template variable name when using content/image/single_with_height_allocation.tpl --- diff --git a/src/Content/Image.php b/src/Content/Image.php index cc2fd5122c..6adfa9dd76 100644 --- a/src/Content/Image.php +++ b/src/Content/Image.php @@ -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 {