Labels Milestones
BackRel="nofollow">dcaec240831d28b722a7d7988287c76a1461e439 more fixes a5c5ff12ce18fecaaf346f973863d12bf361ac82 Notes from MK's PCB livestream Upload files to 'Panels' From e49f4ab127dc081ee1c77dd21e80d128628a1152 Mon Sep 17 00:00:00 2001 Subject: [PATCH 2/2] Fix for when invisiblebread has no bread function rel2abs($rel, $base) { function hook_render_article($article) { return array(0.1, 'Yet more stupid-simple comic-fetching.', ' '); } function hook_render_article($article) { try { return array(0.1, 'Yet more stupid-simple comic-fetching.', ' '); } function hook_render_article($article) { return $this->mangle_article($article); } catch (Exception $e) { $article['content'] .= "
Bonus comic:
" . $aftercomic . ""; if (ADD_IDS) { $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach($imgs as $img){ $article['content'] .= "
" . $entry->textContent . "
"; } } // Dead Philosophers // Dead Philosophers elseif (strpos($article['link'], 'http://www.achewood.com/index.php?date=') !== FALSE) { elseif (strpos($article['link'], 'somethingpositive.net') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']/img", $article); } // Dead Philosophers elseif (strpos($article['link'], 'wondermark.com/c') !== FALSE) { $doc = new DOMDocument(); elseif (strpos($article['content'], 'www.asofterworld.com/index.php?id') !== FALSE && // Cyanide & Happiness elseif (strpos($article["link"], "www.smbc-comics.com/comic/") !== FALSE) { elseif (strpos($article['link'], 'cad-comic.com/sillies/') !== FALSE) { // PhD Unknown elseif (strpos($article["link"], "www.phdunknown.com/index.php?id=") !== FALSE) { // there's both alt and title texts, they're both different, use both. } elseif (strpos($title_text, $alt_text) !== False) { if (preg_match("@.*(