3
1
Back

From 6f5ee76aea5e7cdfb79e86a703d20d48842d1955 Mon Sep 17 00:00:00 2001 Subject: [PATCH] Clean up code formatting; added a few due to referer checks elseif (strpos($article['link'], 'gunnerkrigg.com/?p') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//img[@class='comic']", $article); //also get blog entry $entries = $xpath->query("//span[@class='rss-content']"); foreach ($entries as $entry) { $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 . "

"; } } function.

New Pull Request