]> git.wh0rd.org Git - tt-rss.git/commitdiff
refresh button -> update button (forces refetch)
authorAndrew Dolgov <fox@madoka.spb.ru>
Mon, 22 Aug 2005 07:27:10 +0000 (08:27 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Mon, 22 Aug 2005 07:27:10 +0000 (08:27 +0100)
backend.php

index eed0687096ad518651166999a336da155e2c6b0b..5fe962c353a11aa73023c1d96d22e1b8df1e2d48 100644 (file)
 
                        $line = pg_fetch_assoc($result);
 
-                       if (!$ext && $line["update_timeout"] > MIN_UPDATE_TIME) {
+                       if ($ext == "ForceUpdate" || 
+                               (!$ext && $line["update_timeout"] > MIN_UPDATE_TIME)) {
                                
                                update_rss_feed($link, $line["feed_url"], $feed);
 
                print "<a class=\"button\" 
                        href=\"javascript:viewfeed($feed, $next_skip);\">Next Page</a>";
                print "&nbsp;";
+//             print "<a class=\"button\" 
+//                     href=\"javascript:viewfeed($feed, $skip, '');\">Refresh</a>";
+//             print "&nbsp;";
                print "<a class=\"button\" 
-                       href=\"javascript:viewfeed($feed, $skip, '');\">Refresh</a>";
+                       href=\"javascript:viewfeed($feed, 0, 'ForceUpdate');\">Update</a>";
                print "&nbsp;&nbsp;Mark as read: ";
                print "<a class=\"button\" 
                        href=\"javascript:viewfeed($feed, $skip, 'MarkPageRead');\">This Page</a>";