From: Andrew Dolgov Date: Mon, 11 Jan 2010 13:42:11 +0000 (+0300) Subject: move feed browser to subscribe to feed dialog X-Git-Tag: 1.4.0~91 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=698776460d3cd7075024b8795dbbaf7132415890;p=tt-rss.git move feed browser to subscribe to feed dialog --- diff --git a/functions.php b/functions.php index 881130fc..388d7153 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 bfc1f248..00efdcb7 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 835b4504..5330a4ff 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 5c216748..88ab1212 100644 --- a/tt-rss.php +++ b/tt-rss.php @@ -167,11 +167,6 @@
    - -
    - + -