Skip to content

Commit

Permalink
Don't use filename
Browse files Browse the repository at this point in the history
RandyCupic committed Dec 14, 2021

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent d5d7e9e commit 269f01e
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions bundle/Converter/XmlText/NgRemoteMediaPreConverter.php
Original file line number Diff line number Diff line change
@@ -65,12 +65,10 @@ public function convert(DOMDocument $xmlDoc)

default:
$src = $this->remoteMediaProvider->generateDownloadLink($resource);
$filename = $src ? basename($src) : '';
}

$tag->setAttributeNS(self::CUSTOMTAG_NAMESPACE, 'src', $src);
$tag->setAttributeNS(self::CUSTOMTAG_NAMESPACE, 'videoTag', $videoTag);
$tag->setAttributeNS(self::CUSTOMTAG_NAMESPACE, 'filename', $filename);
$tag->setAttributeNS(self::CUSTOMTAG_NAMESPACE, 'alt', $resource->metaData['alt_text'] ?? '');
$tag->setAttributeNS(self::CUSTOMTAG_NAMESPACE, 'mediaType', $resource->mediaType ?? '');
}
2 changes: 1 addition & 1 deletion bundle/Resources/xsl/ezxml_ngremotemedia.xsl
Original file line number Diff line number Diff line change
@@ -40,7 +40,7 @@
<xsl:otherwise>
<a>
<xsl:attribute name="href"><xsl:value-of select="@custom:src"/></xsl:attribute>
<xsl:value-of select="@custom:filename"/>
<xsl:value-of select="@custom:resourceId"/>
</a>
</xsl:otherwise>
</xsl:choose>

0 comments on commit 269f01e

Please sign in to comment.