summaryrefslogtreecommitdiff
path: root/functions.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2011-04-20 20:09:32 +0400
committerAndrew Dolgov <[email protected]>2011-04-20 20:09:32 +0400
commitd61063c730ca31a442968ed7076e7b710d0dacb8 (patch)
tree781fa893efdfcf59895ac49d139c2ff71c0b4a1c /functions.php
parent109662e12f858bf067f14a37942a1106c900b527 (diff)
get_linked_feeds: properly set feedbrowser cache
Diffstat (limited to 'functions.php')
-rw-r--r--functions.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/functions.php b/functions.php
index 3978e5af9..e5d7e5986 100644
--- a/functions.php
+++ b/functions.php
@@ -7408,11 +7408,12 @@
$feed_url = db_escape_string($feed['feed_url']);
$title = db_escape_string($feed['title']);
$subscribers = db_escape_string($feed['subscribers']);
+ $site_url = db_escape_string($site['site_url']);
db_query($link, "INSERT INTO ttrss_linked_feeds
- (feed_url, title, subscribers, instance_id, created, updated)
+ (feed_url, site_url, title, subscribers, instance_id, created, updated)
VALUES
- ('$feed_url', '$title', '$subscribers', '$id', NOW(), NOW())");
+ ('$feed_url', '$site_url', '$title', '$subscribers', '$id', NOW(), NOW())");
}
} else {
// received 0 feeds, this might indicate that