3
1
Back

Measure, starting on 2nd .... 1 2 3 4 <- this is far simpler than this foreach($imgs as $img){ $article['content'] .= $aftercomic; } } // SBMC elseif (strpos($article["link"], "eatthattoast.com/comic/") !== FALSE && // Cyanide & Happiness elseif (strpos($article['link'], 'twolumps.net/d/') !== FALSE) { // Three Panel Soul elseif (strpos($article['link'], 'gunnerkrigg.com/?p') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@class="webcomic-image"]//img)', $article); } // Gunnerkrigg Court elseif (strpos($article['link'], 'girlswithslingshots.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $orig_content = strip_tags($article['content']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']/img", $article); $article['content'] = $matches[1]; $img = $matches[1]; .

New Pull Request