summaryrefslogtreecommitdiff
path: root/plugins/af_comics
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2018-01-27 09:50:49 +0300
committerAndrew Dolgov <[email protected]>2018-01-27 09:50:49 +0300
commite0383746083e5e0db821edc568bde3c57e211cac (patch)
tree2f5c4f000cef96c67ae9d0724c79f0491bcee9c7 /plugins/af_comics
parentfdde11555717ab2c58af555600ea9a38d6c2d681 (diff)
gocomics: remove width attribute to fix improper scaling of images
Diffstat (limited to 'plugins/af_comics')
-rwxr-xr-x[-rw-r--r--]plugins/af_comics/init.php2
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);