diff options
author | Andrew Dolgov <[email protected]> | 2018-01-27 09:50:49 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2018-01-27 09:50:49 +0300 |
commit | e0383746083e5e0db821edc568bde3c57e211cac (patch) | |
tree | 2f5c4f000cef96c67ae9d0724c79f0491bcee9c7 /plugins/af_comics/init.php | |
parent | fdde11555717ab2c58af555600ea9a38d6c2d681 (diff) |
gocomics: remove width attribute to fix improper scaling of images
Diffstat (limited to 'plugins/af_comics/init.php')
-rwxr-xr-x[-rw-r--r--] | plugins/af_comics/init.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/af_comics/init.php b/plugins/af_comics/init.php index 54054399e..66c48fcf5 100644..100755 --- 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); |