summaryrefslogtreecommitdiff
path: root/functions.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2011-03-29 12:09:42 +0400
committerAndrew Dolgov <[email protected]>2011-03-29 12:16:09 +0400
commit74b046a1c9d10e5c937361c89c3ae790925b76d7 (patch)
tree6671d5252ff75b91bb653a594a9ca2d705794a00 /functions.php
parent9382ca847f6a6be7458b07ed3accc9e4ddb6bd31 (diff)
add ttrss_feeds.update_on_checksum_change
Diffstat (limited to 'functions.php')
-rw-r--r--functions.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/functions.php b/functions.php
index e3e477f0f..ec449f274 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,
- mark_unread_on_update, owner_uid
+ mark_unread_on_update, owner_uid, update_on_checksum_change
FROM ttrss_feeds WHERE id = '$feed'");
}
@@ -533,6 +533,7 @@
$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");
+ $update_on_checksum_change = db_fetch_result($result, 0, "update_on_checksum_change");
db_query($link, "UPDATE ttrss_feeds SET last_update_started = NOW()
WHERE id = '$feed'");
@@ -1202,8 +1203,7 @@
$post_needs_update = false;
- if (get_pref($link, "UPDATE_POST_ON_CHECKSUM_CHANGE", $owner_uid, false) &&
- ($content_hash != $orig_content_hash)) {
+ if ($update_on_checksum_change && $content_hash != $orig_content_hash) {
// print "<!-- [$entry_title] $content_hash vs $orig_content_hash -->";
$post_needs_update = true;
}