mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2026-02-10 16:01:33 +00:00
allow manual forced feed updates if ENABLE_UPDATE_SCHEDULER is enabled (even if DAEMON_REFRESH_ONLY is active), got I hate commit messages
This commit is contained in:
+9
-7
@@ -1036,7 +1036,7 @@
|
|||||||
|
|
||||||
if ($subop == "ForceUpdate" && sprintf("%d", $feed) > 0) {
|
if ($subop == "ForceUpdate" && sprintf("%d", $feed) > 0) {
|
||||||
|
|
||||||
if (ENABLE_UPDATE_SCHEDULER) {
|
/* if (ENABLE_UPDATE_SCHEDULER) {
|
||||||
|
|
||||||
if ($cid == 0) {
|
if ($cid == 0) {
|
||||||
|
|
||||||
@@ -1045,12 +1045,14 @@
|
|||||||
(".$_SESSION["uid"].", '$feed', NOW())");
|
(".$_SESSION["uid"].", '$feed', NOW())");
|
||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
$tmp_result = db_query($link, "SELECT feed_url FROM ttrss_feeds
|
// fixme update_rss_feed...
|
||||||
WHERE id = '$feed'");
|
} */
|
||||||
$feed_url = db_fetch_result($tmp_result, 0, "feed_url");
|
|
||||||
update_rss_feed($link, $feed_url, $feed);
|
$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_SCHEDULER);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($subop == "MarkAllRead") {
|
if ($subop == "MarkAllRead") {
|
||||||
|
|||||||
Reference in New Issue
Block a user