summaryrefslogtreecommitdiffstats
path: root/service
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2014-10-30 12:41:54 +0100
committerBernhard Posselt <dev@bernhard-posselt.com>2014-10-30 12:42:13 +0100
commit7b0063d927b890492d38d2b26c088a29a60256f4 (patch)
treefeee8e3eb8dd61232cd68cea38b5bc8fb4b9b07d /service
parent5e83fce2b2db6be14e6fd6b7bb5d57b54494d532 (diff)
backwards compability for location
Diffstat (limited to 'service')
-rw-r--r--service/feedservice.php9
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()