Skip to content

Commit

Permalink
Update MediaField.cshtml
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeAlhayek authored Oct 10, 2024
1 parent b34259f commit aff222d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
if (Orchard.IsImageFile(path))
{
var alt = !string.IsNullOrEmpty(mediaTexts.ElementAtOrDefault(i)) ? mediaTexts[i] : string.Empty;
<img src="@url" alt="@alt">
<img src="@url" alt="@alt" />
}
else
{
Expand Down

0 comments on commit aff222d

Please sign in to comment.