3
1
Back

Array(0.1, return array( 0.1, 'Yet more stupid-simple comic-fetching.', ' '); } function mangle_article($article) { if (preg_match("@.*(add_hook($host::HOOK_ARTICLE_FILTER, $this); // $host->add_hook($host::HOOK_ARTICLE_FILTER, $this); $host->add_hook($host::HOOK_RENDER_ARTICLE_CDM, $this); $host->add_hook($host::HOOK_RENDER_ARTICLE, $this); } function hook_render_article($article) { try { return $this->mangle_article($article); } function hook_render_article_cdm($article) { } //Sites that provide images and just need alt tags textified. Elseif (strpos($article['content'], 'www.asofterworld.com/index.php?id') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '//td/img[contains(@src, "/comics/images/")]', $article); // $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); } /* dirty absolute URL is ready! */ return $scheme.'://'.$abs; } /* replace '//' or '/./' or '/foo/../' with '/' */ $re = array.

New Pull Request