diff options
author | Andrew Dolgov <[email protected]> | 2011-03-29 11:54:44 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2011-03-29 12:05:39 +0400 |
commit | 9382ca847f6a6be7458b07ed3accc9e4ddb6bd31 (patch) | |
tree | 9451f5924a43065f40f84e24178eb91bf8f2fd91 /functions.php | |
parent | 46a8bd444d2d43db4a24445d4c57339233c4463b (diff) |
add ttrss_feeds.mark_unread_on_update, bump schema, cleanup ttrss_prefs
Diffstat (limited to 'functions.php')
-rw-r--r-- | functions.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/functions.php b/functions.php index 974e2b9a8..e3e477f0f 100644 --- a/functions.php +++ b/functions.php @@ -517,7 +517,7 @@ $result = db_query($link, "SELECT id,update_interval,auth_login, feed_url,auth_pass,cache_images,update_method,last_updated, - owner_uid + mark_unread_on_update, owner_uid FROM ttrss_feeds WHERE id = '$feed'"); } @@ -532,6 +532,7 @@ $update_method = db_fetch_result($result, 0, "update_method"); $last_updated = db_fetch_result($result, 0, "last_updated"); $owner_uid = db_fetch_result($result, 0, "owner_uid"); + $mark_unread_on_update = db_fetch_result($result, 0, "mark_unread_on_update"); db_query($link, "UPDATE ttrss_feeds SET last_update_started = NOW() WHERE id = '$feed'"); @@ -1237,7 +1238,7 @@ num_comments = '$num_comments' WHERE id = '$ref_id'"); - if (get_pref($link, "MARK_UNREAD_ON_UPDATE", $owner_uid, false)) { + if ($mark_unread_on_update) { db_query($link, "UPDATE ttrss_user_entries SET last_read = null, unread = true WHERE ref_id = '$ref_id'"); } else { |