3
1
Back

{ $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach($imgs as $img){ foreach ($imgs as $img) { if (strpos($article["content"], "bonus panel!") !== FALSE) { $doc = new DOMXpath($doc); $bread = $xpath->query("//a[contains(@href, 'bonus-panel')]")->item(0); if ($bread) { $bread_page_url = $bread->getAttribute('href'); $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//img[starts-with(@src, '/comics/') and @class='comic_image']", $article); } /* absolute URL is ready! */ return $scheme . '://' . $abs; Latest commits for file sr1_full.png From 1e6cc98f413992554cb33b458eea58dbb7544fc2 Mon Sep 17 00:00:00 2001 Subject: [PATCH.

New Pull Request