From: Andrew Dolgov Date: Tue, 22 Jan 2013 08:16:17 +0000 (+0400) Subject: feed editor: hide cache content option X-Git-Tag: 1.7.0~44 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=1b03e1deb6b3947f95e42c68cf95fa76ecf66162;p=tt-rss.git feed editor: hide cache content option --- diff --git a/classes/pref/feeds.php b/classes/pref/feeds.php index 78518c61..f11c746b 100644 --- a/classes/pref/feeds.php +++ b/classes/pref/feeds.php @@ -642,18 +642,22 @@ class Pref_Feeds extends Handler_Protected { $checked> "; - $cache_content = sql_bool_to_bool(db_fetch_result($result, 0, "cache_content")); - if ($cache_content) { - $checked = "checked=\"1\""; - } else { - $checked = ""; - } + if (defined('_FEEDS_CONTENT_CACHE') && _FEEDS_CONTENT_CACHE) { + $cache_content = sql_bool_to_bool(db_fetch_result($result, 0, "cache_content")); - print "
 "; + $checked> "; + + } $mark_unread_on_update = sql_bool_to_bool(db_fetch_result($result, 0, "mark_unread_on_update"));