From 1b03e1deb6b3947f95e42c68cf95fa76ecf66162 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 22 Jan 2013 12:16:17 +0400 Subject: [PATCH] feed editor: hide cache content option --- classes/pref/feeds.php | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) 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")); -- 2.39.5