diff --git a/Web/Models/Entities/Traits/TAttachmentHost.php b/Web/Models/Entities/Traits/TAttachmentHost.php index 0d5c42cf..db814cce 100644 --- a/Web/Models/Entities/Traits/TAttachmentHost.php +++ b/Web/Models/Entities/Traits/TAttachmentHost.php @@ -44,7 +44,7 @@ trait TAttachmentHost continue; } - $skipped[] = ["100%", "unset", $child, "unset"]; + $skipped[] = $child; } $height = "unset"; @@ -66,7 +66,8 @@ trait TAttachmentHost return (object) [ "width" => $width . "px", "height" => $height . "px", - "tiles" => array_merge($result, $skipped), + "tiles" => $result, + "extras" => $skipped, ]; } diff --git a/Web/Presenters/templates/components/post/oldpost.xml b/Web/Presenters/templates/components/post/oldpost.xml index 653f7dd4..d157a193 100644 --- a/Web/Presenters/templates/components/post/oldpost.xml +++ b/Web/Presenters/templates/components/post/oldpost.xml @@ -57,11 +57,17 @@ {var $width = $width - 70 * $GLOBALS["_nesAttGloCou"]} {/if} {var $attachmentsLayout = $post->getChildrenWithLayout($width)} -