3
1
Back

$content_type); } function rel2abs($rel, $base) { if (!$alt_text || $alt_text == $article['title'] || strpos($article['title'], $title_text) !== False) { if ($rel[0]=='#' || $rel[0]=='?') { $path = ''; } /* absolute URL is ready! */ return $scheme.'://'.$abs; } function rel2abs($rel, $base) { if (preg_match("@.*(getMessage(); if (strpos($article["link"], "penny-arcade.com") !== FALSE ) { // replace the

(containing project wonderful) with nothing $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); } // Scenes From A Multiverse (to get alt tags if both exist achewood, gwss fix, fix for when invisible bread has no bread Fix for when invisible bread has no bread function rel2abs($rel, $base) { if ($rel[0]=='#' || $rel[0]=='?') { $path = preg_replace('#/[^/]*$#', '', $path); if ($rel[0] == '#' || $rel[0] == '?') { return $base.$rel; } extract(parse_url($base)); $path = preg_replace('#/[^/]*$#', '', $path); if ($rel[0] == '/') { $path = preg_replace('#/[^/]*$#', '', $path); if ($rel[0] == '/') { $path = preg_replace('#/[^/]*$#', '', $path); if ($rel[0] == '/') { $path = preg_replace('#/[^/]*$#', '', $path); /* replace '//' or '/./' or '/foo/../' with '/' */ } /* dirty.

New Pull Request