diff options
| author | 2022-03-02 17:44:52 +0100 | |
|---|---|---|
| committer | 2022-03-02 17:44:52 +0100 | |
| commit | fd945ffb9314f3613a96cfe3aa4fbc389b702d7a (patch) | |
| tree | 3178e16a2d7719f4991c349963c81e110cd146d4 /app/Models/Feed.php | |
| parent | 467ca9d0deea511700656d4433dbd915b137b748 (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.php | 2 |
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; |
