3
1
Back

Warnings d62e7c6861 More work finding space for a few comics; standardized appending alt/title text under images (extra useful for non-browser users elseif (strpos($article['link'], 'qwantz.com/index.php?comic') !== FALSE) { //also get blog $entries = $xpath->query("//span[@class='rss-content']"); foreach ($entries as $entry){ $article['content'] .= "ID: " . $article['id']; } return $article; } function hook_render_article($article) { try { return array(0.1, 'Yet more stupid-simple comic-fetching.', } function rel2abs($rel, $base) { if ($doc === NULL) { if (parse_url($rel, PHP_URL_SCHEME) != '' || substr($rel, 0, 2) == '//') { return $base.$rel; if ($rel[0] == '#' || $rel[0] == '?') { return $this->mangle_article($article); } function get_img_tags($xpath, $query, $article){ /* dirty absolute URL is ready! */ return $scheme . '://' . $abs; if (preg_match("@.*(get_img_tags($xpath, '(//div[@id="comic"]//img)', $article); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comic"]//img)', $article); } /* OotS uses some kind of referer check which prevents fetch_file_contents() from retrieving the image. * Possible fix.

New Pull Request