1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2026-01-30 20:17:11 +00:00

Merge branch 'fix-encl-img-attrs' into 'master'

Fixed height/width image attributes for enclosures.

Per <https://tt-rss.org/forum/viewtopic.php?f=1&t=3482>: Width/height values for images appear to be swapped when rendering enclosures. This fixes that so width is assigned width, etc.

See merge request !12
This commit is contained in:
Andrew Dolgov
2015-08-23 21:15:28 +03:00

View File

@@ -1953,9 +1953,9 @@
if (!$hide_images) {
$encsize = '';
if ($entry['height'] > 0)
$encsize .= ' height="' . intval($entry['width']) . '"';
$encsize .= ' height="' . intval($entry['height']) . '"';
if ($entry['width'] > 0)
$encsize .= ' width="' . intval($entry['height']) . '"';
$encsize .= ' width="' . intval($entry['width']) . '"';
$rv .= "<p><img
alt=\"".htmlspecialchars($entry["filename"])."\"
src=\"" .htmlspecialchars($entry["url"]) . "\"