allow manual updates for feeds with disabled automatic updates
This commit is contained in:
parent
c86bf88d98
commit
ecbd7b91fe
|
@ -746,7 +746,7 @@ class RPC extends Protected_Handler {
|
||||||
|
|
||||||
db_query($this->link, "UPDATE ttrss_feeds SET
|
db_query($this->link, "UPDATE ttrss_feeds SET
|
||||||
last_update_started = '1970-01-01',
|
last_update_started = '1970-01-01',
|
||||||
last_updated = '1970-01-01' WHERE id = '$feed_id' AND
|
last_updated = NULL WHERE id = '$feed_id' AND
|
||||||
owner_uid = ".$_SESSION["uid"]);
|
owner_uid = ".$_SESSION["uid"]);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
@ -759,7 +759,7 @@ class RPC extends Protected_Handler {
|
||||||
|
|
||||||
db_query($this->link, "UPDATE ttrss_feeds SET
|
db_query($this->link, "UPDATE ttrss_feeds SET
|
||||||
last_update_started = '1970-01-01',
|
last_update_started = '1970-01-01',
|
||||||
last_updated = '1970-01-01' WHERE $cat_query AND
|
last_updated = NULL WHERE $cat_query AND
|
||||||
owner_uid = ".$_SESSION["uid"]);
|
owner_uid = ".$_SESSION["uid"]);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -310,12 +310,9 @@
|
||||||
$auth_pass = urlencode($auth_pass);
|
$auth_pass = urlencode($auth_pass);
|
||||||
}
|
}
|
||||||
|
|
||||||
$update_interval = db_fetch_result($result, 0, "update_interval");
|
|
||||||
$cache_images = sql_bool_to_bool(db_fetch_result($result, 0, "cache_images"));
|
$cache_images = sql_bool_to_bool(db_fetch_result($result, 0, "cache_images"));
|
||||||
$fetch_url = db_fetch_result($result, 0, "feed_url");
|
$fetch_url = db_fetch_result($result, 0, "feed_url");
|
||||||
|
|
||||||
if ($update_interval < 0) { return false; }
|
|
||||||
|
|
||||||
$feed = db_escape_string($feed);
|
$feed = db_escape_string($feed);
|
||||||
|
|
||||||
if ($auth_login && $auth_pass ){
|
if ($auth_login && $auth_pass ){
|
||||||
|
|
Loading…
Reference in New Issue