From: Andrew Dolgov Date: Wed, 23 Nov 2005 07:13:57 +0000 (+0100) Subject: feed editor now respects ENABLE_FEED_CATS X-Git-Tag: schema_feature_freeze_for_1.1~132 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=54d3ba50affc7e48ea4e823c3ece03e3f9033df3;p=tt-rss.git feed editor now respects ENABLE_FEED_CATS --- diff --git a/backend.php b/backend.php index f0ad0149..28e636a4 100644 --- a/backend.php +++ b/backend.php @@ -1273,8 +1273,10 @@ print "" . $edit_link . ""; - print "" . - $edit_cat . ""; + if (get_pref($link, 'ENABLE_FEED_CATS')) { + print "" . + $edit_cat . ""; + } if ($line["update_interval"] == "0") $line["update_interval"] = "Default"; @@ -1298,7 +1300,10 @@ print "$edit_title"; print "$edit_link"; - print "$edit_cat"; + + if (get_pref($link, 'ENABLE_FEED_CATS')) { + print "$edit_cat"; + } if ($line["update_interval"] == "0") $line["update_interval"] = "Default"; @@ -1320,32 +1325,33 @@ print ""; print ""; - print ""; - - print ""; + print ""; + + if (db_num_rows($result) > 0) { + print ""; } - printf("", - $tmp_line["id"], $tmp_line["title"]); - } + + $tmp_result = db_query($link, "SELECT id,title FROM ttrss_feed_categories + WHERE owner_uid = ".$_SESSION["uid"]." ORDER BY title"); + + while ($tmp_line = db_fetch_assoc($tmp_result)) { + if ($tmp_line["id"] == $line["cat_id"]) { + $is_selected = "selected"; + } else { + $is_selected = ""; + } + printf("", + $tmp_line["id"], $tmp_line["title"]); + } + + print ""; + print ""; - print ""; - - print ""; + } print "";