From: Andrew Dolgov Date: Tue, 1 Apr 2014 14:44:13 +0000 (+0000) Subject: fix af_habr X-Git-Tag: 1.13~53 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=463bcb7769c84c51561829c8f7a066c51285c710;p=tt-rss.git fix af_habr --- 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);