diff options
author | Andrew Dolgov <[email protected]> | 2015-08-23 21:15:28 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2015-08-23 21:15:28 +0300 |
commit | 2606a4e3aec72d8d0d8e5170c9ee2dfea25b9111 (patch) | |
tree | b9a40f34e33448eb1008552908947af10e787fa4 | |
parent | c7ce438e7b7de26c2018e1b96f746d9c2ffca84e (diff) | |
parent | 08e79cb6b91fab4f86415d2b10e47567f6594988 (diff) |
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
-rw-r--r-- | include/functions2.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/functions2.php b/include/functions2.php index dd9d1ad68..a135049a5 100644 --- a/include/functions2.php +++ b/include/functions2.php @@ -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"]) . "\" |