From 463bcb7769c84c51561829c8f7a066c51285c710 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 1 Apr 2014 14:44:13 +0000 Subject: [PATCH] fix af_habr --- plugins/af_habr/init.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/af_habr/init.php b/plugins/af_habr/init.php index 222be668..d357956a 100644 --- a/plugins/af_habr/init.php +++ b/plugins/af_habr/init.php @@ -27,7 +27,7 @@ class Af_Habr extends Plugin { if ($doc) { $xpath = new DOMXPath($doc); - $basenode = $xpath->query("//div[@class='content_html_format']")->item(0); + $basenode = $xpath->query("//div[contains(@class,'content') and contains(@class, 'html_format')]")->item(0); if ($basenode) { $article["content"] = $doc->saveXML($basenode); -- 2.39.5