diff --git a/modules/pref-feeds.php b/modules/pref-feeds.php index 0572978dd..1ea63c96f 100644 --- a/modules/pref-feeds.php +++ b/modules/pref-feeds.php @@ -428,7 +428,7 @@ $cat_id = db_escape_string($_GET["cat_id"]); $p_from = db_escape_string($_GET["from"]); - if ($p_from) { + if ($p_from != 'tt-rss') { print "
Return to Tiny Tiny RSS or - close this window.
"; + $tp_uri = 'http://' . $_SERVER['SERVER_NAME'] . + preg_replace('/backend\.php.*$/', + 'prefs.php', $_SERVER["REQUEST_URI"]); + + print "Return to Tiny Tiny RSS |"; + + $result = db_query($link, "SELECT id FROM ttrss_feeds WHERE + feed_url = '$feed_url' AND owner_uid = " . $_SESSION["uid"]); + + $feed_id = db_fetch_result($result, 0, "id"); + + if ($feed_id) { + print " + Edit subscription options | "; + } + + print "Close this window.
"; - print ""; + print "