From e0383746083e5e0db821edc568bde3c57e211cac Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sat, 27 Jan 2018 09:50:49 +0300 Subject: [PATCH] gocomics: remove width attribute to fix improper scaling of images --- plugins/af_comics/init.php | 2 ++ 1 file changed, 2 insertions(+) mode change 100644 => 100755 plugins/af_comics/init.php 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); -- 2.39.2