3
1
Back

!= '' || substr($rel, 0, 2) == '//') { return $this->mangle_article($article); } catch (Exception $e) { $article['content'] .= $aftercomic; } } } // Gunnerkrigg Court elseif (strpos($article['link'], 'twolumps.net/d/') !== FALSE) { if (strpos($article['link'], 'eatthattoast.com/comic/') !== FALSE) { // Three Panel Soul $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = preg_replace('#(width|height)="150"#', '', $article['content']); } // Cyanide & Happiness elseif (strpos($article["link"], "explosm.net/comics") !== FALSE) { $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach($imgs as $img){ if ($img->getAttribute('title')) { $article['content'] = $doc->saveHTML(); elseif (strpos($article['link'], 'polyinpictures.com/comic/') !== FALSE) { $xpath.

New Pull Request