3
1
Back

} $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comic"]//img)', $article) . $article['content']; } // @todo Refactor the scaling algorithm and parameters to be able to bump to 9.5mm, but need to call out for elseif (strpos($article['content'], 'imgs.xkcd.com/comics/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = preg_replace('#(width|height)="150"#', '', $article['content']); } // Cyanide & Happiness // Cyanide & Happiness elseif (strpos($article["link"], "explosm.net/comics") !== FALSE) { $xpath = new DOMDocument(); $doc->loadHTML($article['content']); $xpath = $this->get_xpath_dealie($article['link']); $img_tag = $this->get_img_tags($xpath, '//p[@class="Maintext"]//img[contains(@src, "joyimages")]', $article); } // Poorly Drawn Lines // Berkeley Mews elseif (strpos($article["link"], "drugsandwires.fail/dnwcomic/") .

New Pull Request