From 7b0063d927b890492d38d2b26c088a29a60256f4 Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Thu, 30 Oct 2014 12:41:54 +0100 Subject: backwards compability for location --- service/feedservice.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'service') 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() -- cgit v1.2.3