From: Andrew Dolgov Date: Thu, 4 Nov 2010 15:11:15 +0000 (+0300) Subject: prefs: disable option ENABLE_FEED_ICONS X-Git-Tag: 1.5.0~414 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=85a922895f2865a658f98a7d0e795aec05da3d06;p=tt-rss.git prefs: disable option ENABLE_FEED_ICONS --- diff --git a/functions.php b/functions.php index 174a19e8..259aaf55 100644 --- a/functions.php +++ b/functions.php @@ -701,14 +701,12 @@ $site_url = $rss->channel["link"]; } - if (get_pref($link, 'ENABLE_FEED_ICONS', $owner_uid, false)) { - if (defined('DAEMON_EXTENDED_DEBUG') || $_REQUEST['xdebug']) { - _debug("update_rss_feed: checking favicon..."); - } - - check_feed_favicon($site_url, $feed, $link); + if (defined('DAEMON_EXTENDED_DEBUG') || $_REQUEST['xdebug']) { + _debug("update_rss_feed: checking favicon..."); } + check_feed_favicon($site_url, $feed, $link); + if (!$registered_title || $registered_title == "[Unknown]") { if ($use_simplepie) { @@ -1681,10 +1679,7 @@ print $color_str; */ print "
  • "; - if (get_pref($link, 'ENABLE_FEED_ICONS')) { - print "$feed_icon"; - } - + print "$feed_icon"; print "$feed"; if ($unread != 0) { diff --git a/mobile/classic/functions.php b/mobile/classic/functions.php index c7acba79..bd61bbfd 100644 --- a/mobile/classic/functions.php +++ b/mobile/classic/functions.php @@ -296,10 +296,7 @@ $feed = "$feed_title"; print "
  • "; - if (get_pref($link, 'ENABLE_FEED_ICONS')) { - print "$feed_icon"; - } - + print "$feed_icon"; print "$feed "; if ($unread != 0) { diff --git a/modules/pref-feeds.php b/modules/pref-feeds.php index dc3553d1..b1067977 100644 --- a/modules/pref-feeds.php +++ b/modules/pref-feeds.php @@ -1295,9 +1295,7 @@ print "  "; - if (get_pref($link, 'ENABLE_FEED_ICONS')) { - print " "; - } + print " "; print "".__('Title').""; @@ -1354,9 +1352,7 @@ print "  "; - if (get_pref($link, 'ENABLE_FEED_ICONS')) { - print " "; - } + print " "; print "".__('Title').""; @@ -1389,9 +1385,7 @@ $onclick = "onclick='editFeed($feed_id)' title='".__('Click to edit')."'"; - if (get_pref($link, 'ENABLE_FEED_ICONS')) { - print "$feed_icon"; - } + print "$feed_icon"; if ($last_error) { $edit_title = "$edit_title"; diff --git a/modules/pref-prefs.php b/modules/pref-prefs.php index a55d78f9..5105f357 100644 --- a/modules/pref-prefs.php +++ b/modules/pref-prefs.php @@ -14,7 +14,7 @@ $subop = $_REQUEST["subop"]; $prefs_blacklist = array("HIDE_FEEDLIST", "SYNC_COUNTERS", "ENABLE_LABELS", - "ENABLE_SEARCH_TOOLBAR", "HIDE_READ_FEEDS"); + "ENABLE_SEARCH_TOOLBAR", "HIDE_READ_FEEDS", "ENABLE_FEED_ICONS"); $profile_blacklist = array("ALLOW_DUPLICATE_POSTS", "PURGE_OLD_DAYS", "PURGE_UNREAD_ARTICLES", "DIGEST_ENABLE", "DIGEST_CATCHUP",