fix af_habr

This commit is contained in:
Andrew Dolgov 2014-04-01 14:44:13 +00:00
parent eb1921efee
commit 463bcb7769
1 changed files with 1 additions and 1 deletions

View 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);