From: Andrew Dolgov Date: Sat, 27 Jan 2018 06:50:49 +0000 (+0300) Subject: gocomics: remove width attribute to fix improper scaling of images X-Git-Tag: 18.8~83 X-Git-Url: https://git.wh0rd.org/?p=tt-rss.git;a=commitdiff_plain;h=e0383746083e5e0db821edc568bde3c57e211cac gocomics: remove width attribute to fix improper scaling of images --- diff --git a/plugins/af_comics/init.php b/plugins/af_comics/init.php old mode 100644 new mode 100755 index 54054399..66c48fcf --- a/plugins/af_comics/init.php +++ b/plugins/af_comics/init.php @@ -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);