]> git.wh0rd.org - tt-rss.git/commitdiff
fix af_habr
authorAndrew Dolgov <noreply@fakecake.org>
Tue, 1 Apr 2014 14:44:13 +0000 (14:44 +0000)
committerAndrew Dolgov <noreply@fakecake.org>
Tue, 1 Apr 2014 14:44:13 +0000 (14:44 +0000)
plugins/af_habr/init.php

index 222be668175a07938c975fc16afc99828802f31b..d357956a717ecc0bd32bb7431a6d07c300b75e6c 100644 (file)
@@ -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);