3
1
Back

Keep it simple. Follow one pattern. Class _comics extends Plugin { function rel2abs($rel, $base) { if (preg_match("@.*()@", $article['content'], $matches)) { $article['content'] = $img; } $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='content']/img", $article); elseif (strpos($article['link'], 'www.robot-hugs.com/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//img[@class='comic']", $article); //also get blog $entries = $xpath->query($query); $result_html = ''; function get_xpath_dealie($link) { $abs = preg_replace($re.

New Pull Request