From 698776460d3cd7075024b8795dbbaf7132415890 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 11 Jan 2010 16:42:11 +0300 Subject: [PATCH] move feed browser to subscribe to feed dialog --- functions.php | 4 ++-- modules/popup-dialog.php | 3 +++ modules/pref-feeds.php | 15 ++++++++++++--- tt-rss.php | 5 ----- 4 files changed, 17 insertions(+), 10 deletions(-) diff --git a/functions.php b/functions.php index 881130fc0..388d71530 100644 --- a/functions.php +++ b/functions.php @@ -6353,9 +6353,9 @@ db_query($link, "COMMIT"); - if (file_exists(ICONS_DIR . "/$id.ico")) { +/* if (file_exists(ICONS_DIR . "/$id.ico")) { unlink(ICONS_DIR . "/$id.ico"); - } + } */ ccache_remove($link, $id, $owner_uid); diff --git a/modules/popup-dialog.php b/modules/popup-dialog.php index bfc1f2483..00efdcb74 100644 --- a/modules/popup-dialog.php +++ b/modules/popup-dialog.php @@ -128,6 +128,9 @@ + + "; diff --git a/modules/pref-feeds.php b/modules/pref-feeds.php index 835b45041..5330a4ffa 100644 --- a/modules/pref-feeds.php +++ b/modules/pref-feeds.php @@ -1135,11 +1135,11 @@ type=\"submit\" id=\"subscribe_to_feed_btn\" class=\"button\" value=\"".__('Subscribe to feed')."\">"; - if (ENABLE_FEED_BROWSER && !SINGLE_USER_MODE) { +/* if (ENABLE_FEED_BROWSER && !SINGLE_USER_MODE) { print " "; - } + } */ $feeds_sort = db_escape_string($_REQUEST["sort"]); @@ -1533,7 +1533,16 @@ } else if ($mode == 2) { $feed_url = $line["feed_url"]; + + $icon_file = ICONS_DIR . "/" . $line["id"] . ".ico"; + if (file_exists($icon_file) && filesize($icon_file) > 0) { + $feed_icon = ""; + } else { + $feed_icon = ""; + } + $check_box = ""; @@ -1547,7 +1556,7 @@ } print "
  • $check_box". - $line["title"] . $site_url . "
  • "; + "$feed_icon " . $line["title"] . $site_url . ""; } diff --git a/tt-rss.php b/tt-rss.php index 5c216748e..88ab12128 100644 --- a/tt-rss.php +++ b/tt-rss.php @@ -167,11 +167,6 @@
    - -
    - + -