From abe24e397783ccff66f83536cb4ea46c7bb68f5f Mon Sep 17 00:00:00 2001
From: Andrew Dolgov <noreply@fakecake.org>
Date: Wed, 12 Feb 2014 13:32:44 +0400
Subject: [PATCH] af_comics: fix for PA new layout

---
 plugins/af_comics/init.php | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/plugins/af_comics/init.php b/plugins/af_comics/init.php
index 5d3ccf072..993ddb7cd 100644
--- a/plugins/af_comics/init.php
+++ b/plugins/af_comics/init.php
@@ -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);
-- 
GitLab