3
1
Back

= ''; $orig_src = $entry->getAttribute('src'); $new_src = $this->rel2abs($orig_src, $article['link']); if ($alt_text && !$title_text){ } /* dirty absolute URL is ready! */ } /* replace '//' or '/./' or '/foo/../' with '/' */ } /* replace '//' or '/./' or '/foo/../' with '/' */ for($n=1; $n>0; $abs=preg_replace($re, '/', $abs, -1, $n)) { } // Least I Could Do (wtf image size? Elseif (strpos($article['link'], 'www.geekculture.com/joyoftech/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@class="webcomic-image"]//img)', $article); } // Cyanide & Happiness // Cyanide & Happiness elseif (strpos($article["link"], "eatthattoast.com/comic/") !== FALSE && strpos($article["title"], "Comic:") !== FALSE) { // Joy of Tech elseif (strpos($article['link'], 'dead-philosophers.com/?p') !== FALSE) { $article['content'] .= "$orig_content.

New Pull Request