]> git.mxchange.org Git - friendica.git/commitdiff
Fix wrong template variable name when using content/image/single_with_height_allocati...
authorHypolite Petovan <hypolite@mrpetovan.com>
Sat, 7 Oct 2023 09:18:33 +0000 (05:18 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Sat, 7 Oct 2023 10:07:07 +0000 (06:07 -0400)
src/Content/Image.php

index cc2fd5122c3f5353a8fe5b8021c4c143d228dcea..6adfa9dd761481e4f5c79a15f5e549032e7a3fd4 100644 (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 {