From 54d3ba50affc7e48ea4e823c3ece03e3f9033df3 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 23 Nov 2005 08:13:57 +0100 Subject: [PATCH] feed editor now respects ENABLE_FEED_CATS --- backend.php | 58 +++++++++++++++++++++++++++++------------------------ 1 file changed, 32 insertions(+), 26 deletions(-) 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 ""; -- 2.39.5