]> git.wh0rd.org - tt-rss.git/blobdiff - plugins/af_comics/init.php
gocomics: remove width attribute to fix improper scaling of images
[tt-rss.git] / plugins / af_comics / init.php
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);