]> git.wh0rd.org Git - tt-rss.git/commitdiff
fixed toolbar feed update button
authorAndrew Dolgov <fox@madoka.spb.ru>
Fri, 28 Oct 2005 09:33:24 +0000 (10:33 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Fri, 28 Oct 2005 09:33:24 +0000 (10:33 +0100)
backend.php
functions.php

index ed58fcea2c6f55451edd0eca027bd372f9bfe9f6..ae849900aa673f74ceb3047605f30cf93c37bfae 100644 (file)
                                </head><body>";
                }
 
+               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) {
index fee40cb9d17ffc7a237c00c025cf0147b35d9294..9d0016c72c26f98414f337869905a8abbe2c9fb6 100644 (file)
@@ -97,7 +97,7 @@
                db_query($link, "BEGIN");
 
                $feed = db_escape_string($feed);
-       
+
                if ($rss) {
 
                        if (ENABLE_FEED_ICONS) {