From dcee8f6125caa07023aef73cadc620496ed25086 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 28 Oct 2005 10:33:24 +0100 Subject: [PATCH] fixed toolbar feed update button --- backend.php | 11 +++++++++++ functions.php | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/backend.php b/backend.php index ed58fcea..ae849900 100644 --- a/backend.php +++ b/backend.php @@ -459,6 +459,17 @@ "; } + if ($subop == "ForceUpdate" && sprintf("%d", $feed) > 0) { + + $tmp_result = db_query($link, "SELECT feed_url FROM ttrss_feeds + WHERE id = '$feed'"); + + $feed_url = db_fetch_result($tmp_result, 0, "feed_url"); + + update_rss_feed($link, $feed_url, $feed); + + } + if ($subop == "MarkAllRead") { if (sprintf("%d", $feed) != 0) { diff --git a/functions.php b/functions.php index fee40cb9..9d0016c7 100644 --- a/functions.php +++ b/functions.php @@ -97,7 +97,7 @@ db_query($link, "BEGIN"); $feed = db_escape_string($feed); - + if ($rss) { if (ENABLE_FEED_ICONS) { -- 2.39.5