projects
/
tt-rss.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eb1921e
)
fix af_habr
author
Andrew Dolgov
<noreply@fakecake.org>
Tue, 1 Apr 2014 14:44:13 +0000
(14:44 +0000)
committer
Andrew Dolgov
<noreply@fakecake.org>
Tue, 1 Apr 2014 14:44:13 +0000
(14:44 +0000)
plugins/af_habr/init.php
patch
|
blob
|
history
diff --git
a/plugins/af_habr/init.php
b/plugins/af_habr/init.php
index 222be668175a07938c975fc16afc99828802f31b..d357956a717ecc0bd32bb7431a6d07c300b75e6c 100644
(file)
--- 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);