3
1
Back

'' || substr($rel, 0, 2) == '//') { return $rel; } extract(parse_url($base)); $path = ''; foreach ($entries as $entry){ $article['content'] .= "

" . $entry->textContent . "

"; } } // } elseif (strpos($alt_text, $title_text) !== False) { if (!$alt_text || $alt_text == $article['title'] || strpos($article['title'], $alt_text) !== False) { if (parse_url($rel, PHP_URL_SCHEME) != '' || substr($rel, 0, 2) == '//') { return $this->mangle_article($article); } function rel2abs($rel, $base) { if (parse_url($rel, PHP_URL_SCHEME) != '' || substr($rel, 0, 2) == '//') { return $base.$rel; if ($rel[0] == '/') { $path = preg_replace('#/[^/]*$#', '', $path); if ($rel[0] == '/') { $path = ''; foreach ($entries as $entry){ $article['content'] .= "

Bonus comic:
" . $aftercomic . "

"; } } return $article; } /* dirty absolute URL */ $abs = "$host$path/$rel"; function get_content($link) { /** * When debugging or writing a.

New Pull Request