]> git.wh0rd.org - tt-rss.git/commitdiff
gocomics: remove width attribute to fix improper scaling of images
authorAndrew Dolgov <noreply@fakecake.org>
Sat, 27 Jan 2018 06:50:49 +0000 (09:50 +0300)
committerAndrew Dolgov <noreply@fakecake.org>
Sat, 27 Jan 2018 06:50:49 +0000 (09:50 +0300)
plugins/af_comics/init.php [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index 5405439..66c48fc
@@ -123,6 +123,8 @@ class Af_Comics extends Plugin {
                                        $node = $xpath->query('//picture[contains(@class, "item-comic-image")]/img')->item(0);
 
                                        if ($node) {
+                                           $node->removeAttribute("width");
+
                                                $tpl->setVariable('ARTICLE_ID', $article_link, true);
                                                $tpl->setVariable('ARTICLE_LINK', $article_link, true);
                                                $tpl->setVariable('ARTICLE_TITLE', date('l, F d, Y'), true);