3
1
Back

$this->get_img_tags($xpath, "//div[@id='comic']/img", $article); $article['content'] = $this->get_img_tags($xpath, '//td/img[contains(@src, "/comics/images/")]', $article); // } elseif (strpos($article["link"], "satwcomic.com/") !== FALSE) { $aftercomic = $this->get_img_tags($xpath, "//figure[@class='photo-hires-item']//img", $article); } // Invisible Bread (make the bread visible) elseif (strpos($article['content'], 'wondermark.com/c') !== FALSE) { $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']/img", $article); $article['content'] .= "Alt: " . $article['id']; } return $article; } function get_img_tags($xpath, $query, $article){ /* dirty absolute URL is ready! */ return $scheme . '://' . $abs; if (preg_match("@.*(

New Pull Request