af_comics: fix for PA new layout

This commit is contained in:
Andrew Dolgov 2014-02-12 13:32:44 +04:00
parent f826070c56
commit abe24e3977
1 changed files with 1 additions and 5 deletions

View File

@ -210,11 +210,7 @@ class Af_Comics extends Plugin {
if ($doc) {
$xpath = new DOMXPath($doc);
$entries = $xpath->query('(//div[@class="post comic"])');
foreach ($entries as $entry) {
$basenode = $entry;
}
$basenode = $xpath->query('(//div[@id="comicFrame"])')->item(0);
if ($basenode) {
$article["content"] = $doc->saveXML($basenode);