]> git.wh0rd.org Git - tt-rss.git/commitdiff
fix broken feed refresh w/o daemon
authorAndrew Dolgov <fox@madoka.spb.ru>
Mon, 29 Oct 2007 07:24:43 +0000 (08:24 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Mon, 29 Oct 2007 07:24:43 +0000 (08:24 +0100)
functions.php
mobile/functions.php

index a7bae8558902d08dbbd2500e39fe432e1a40c6b3..a939beaf5ce5ca4bd05c81de8eacba5a12c07472 100644 (file)
                        }
        }
 
-       function update_generic_feed($link, $feed, $cat_view) {
+       function update_generic_feed($link, $feed, $cat_view, $force_update = false) {
                        if ($cat_view) {
 
                                if ($feed > 0) {
                                while ($tmp_line = db_fetch_assoc($tmp_result)) {                                       
                                        $feed_url = $tmp_line["feed_url"];
                                        $feed_id = $tmp_line["id"];
-                                       update_rss_feed($link, $feed_url, $feed_id, ENABLE_UPDATE_DAEMON);
+                                       update_rss_feed($link, $feed_url, $feed_id, $force_update);
                                }
 
                        } else {
                                $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, ENABLE_UPDATE_DAEMON);
+                               update_rss_feed($link, $feed_url, $feed, $force_update);
                        }
        }
 
                }
 
                if ($subop == "ForceUpdate" && sprintf("%d", $feed) > 0) {
-                       update_generic_feed($link, $feed, $cat_view);
+                       update_generic_feed($link, $feed, $cat_view, true);
                }
 
                if ($subop == "MarkAllRead")  {
index 28308729929311cf3f3840b9f110d12dff4c98fa..07a7544de8e29fe2c609bc0f1deeceada457f418 100644 (file)
                print "<div id=\"headlines\" $rtl_tag>";
 
                if ($subop == "ForceUpdate" && sprintf("%d", $feed) > 0) {
-                       update_generic_feed($link, $feed, $cat_view);
+                       update_generic_feed($link, $feed, $cat_view, true);
                }
 
                if ($subop == "MarkAllRead")  {