Replace element with correct img-element
authorCyperghost <olaf_schmitz_1@t-online.de>
Mon, 5 Feb 2024 13:02:05 +0000 (14:02 +0100)
committerCyperghost <olaf_schmitz_1@t-online.de>
Mon, 5 Feb 2024 13:02:05 +0000 (14:02 +0100)
wcfsetup/install/files/lib/system/html/metacode/upcast/AttachMetacodeUpcast.class.php

index 3354056404df7cf86ca152d8c34321ec2f112ba5..4cf2915f146077805aab808a6c54da4206930448 100644 (file)
@@ -47,6 +47,7 @@ final class AttachMetacodeUpcast implements IMetacodeUpcast
         $imgElement->setAttribute('class', 'image woltlabAttachment');
         $imgElement->setAttribute('style', $this->getStyle($attachment, $width));
         if ($alignment === 'none') {
+            DOMUtil::replaceElement($element, $imgElement);
             return;
         }