aboutsummaryrefslogtreecommitdiff
path: root/app/Models/Feed.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2022-03-02 17:44:52 +0100
committerGravatar GitHub <noreply@github.com> 2022-03-02 17:44:52 +0100
commitfd945ffb9314f3613a96cfe3aa4fbc389b702d7a (patch)
tree3178e16a2d7719f4991c349963c81e110cd146d4 /app/Models/Feed.php
parent467ca9d0deea511700656d4433dbd915b137b748 (diff)
Fix XPath context for tags (#4246)
#fix https://github.com/FreshRSS/FreshRSS/issues/4245 Follow-up of https://github.com/FreshRSS/FreshRSS/pull/4220
Diffstat (limited to 'app/Models/Feed.php')
-rw-r--r--app/Models/Feed.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Models/Feed.php b/app/Models/Feed.php
index 0e02194ef..934036845 100644
--- a/app/Models/Feed.php
+++ b/app/Models/Feed.php
@@ -605,7 +605,7 @@ class FreshRSS_Feed extends Minz_Model {
$item['timestamp'] = $xPathItemTimestamp == '' ? '' : @$xpath->evaluate('normalize-space(' . $xPathItemTimestamp . ')', $node);
$item['thumbnail'] = $xPathItemThumbnail == '' ? '' : @$xpath->evaluate('normalize-space(' . $xPathItemThumbnail . ')', $node);
if ($xPathItemCategories != '') {
- $itemCategories = @$xpath->query($xPathItemCategories);
+ $itemCategories = @$xpath->query($xPathItemCategories, $node);
if ($itemCategories) {
foreach ($itemCategories as $itemCategory) {
$item['categories'][] = $itemCategory->textContent;