]> git.wh0rd.org - tt-rss.git/blobdiff - backend.php
fixed toolbar feed update button
[tt-rss.git] / backend.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) {