]> git.wh0rd.org - tt-rss.git/commitdiff
Fixed height/width image attributes for enclosures.
authorJustAMacUser <donotreply@example.org>
Sun, 23 Aug 2015 17:08:48 +0000 (13:08 -0400)
committerJustAMacUser <donotreply@example.org>
Sun, 23 Aug 2015 17:08:48 +0000 (13:08 -0400)
include/functions2.php

index dd9d1ad68aa68e1009454f7527d9427f17ffbefc..a135049a585a058b1214733897f2fdda960a4646 100644 (file)
                                                                        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"]) . "\"