diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-10-30 12:41:54 +0100 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-10-30 12:42:13 +0100 |
commit | 7b0063d927b890492d38d2b26c088a29a60256f4 (patch) | |
tree | feee8e3eb8dd61232cd68cea38b5bc8fb4b9b07d /service/feedservice.php | |
parent | 5e83fce2b2db6be14e6fd6b7bb5d57b54494d532 (diff) |
backwards compability for location
Diffstat (limited to 'service/feedservice.php')
-rw-r--r-- | service/feedservice.php | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/service/feedservice.php b/service/feedservice.php index 012534421..e0514b35f 100644 --- a/service/feedservice.php +++ b/service/feedservice.php @@ -192,9 +192,16 @@ class FeedService extends Service { return $existingFeed; } + // for backwards compability it can be that the location is not set + // yet, if so use the url + $location = $existingFeed->getLocation(); + if (!$location) { + $location = $existingFeed->getUrl(); + } + try { list($fetchedFeed, $items) = $this->feedFetcher->fetch( - $existingFeed->getUrl(), + $location, false, $existingFeed->getLastModified(), $existingFeed->getEtag() |