3
1
Back

Keep it simple. Follow one pattern. Class _comics extends Plugin { function rel2abs($rel, $base) { if ($rel[0]=='#' || $rel[0]=='?') { return $this->mangle_article($article); } function hook_render_article($article) { try { return $base.$rel; if ($rel[0] == '#' || $rel[0] == '?') { return $rel; } if (strpos($article['link'], 'eatthattoast.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='imgdiv']//img", $article.

New Pull Request