From: Andrew Dolgov Date: Tue, 22 Aug 2006 08:54:32 +0000 (+0100) Subject: recategorize feed with all linked feeds X-Git-Tag: 1.2.3~32 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=a283b8d13e68921f27531994a331564a8a04020c;p=tt-rss.git recategorize feed with all linked feeds --- diff --git a/backend.php b/backend.php index 0075eb65..ddc73b97 100644 --- a/backend.php +++ b/backend.php @@ -1236,7 +1236,15 @@ print "Category:"; print ""; - print_feed_cat_select($link, "cat_id", $cat_id, "class=\"iedit\""); + $parent_feed = db_fetch_result($result, 0, "parent_feed"); + + if (sprintf("%d", $parent_feed) > 0) { + $disabled = "disabled"; + } else { + $disabled = ""; + } + + print_feed_cat_select($link, "cat_id", $cat_id, "class=\"iedit\" $disabled"); print ""; print ""; @@ -1265,6 +1273,8 @@ if ($linked_count > 0) { $disabled = "disabled"; + } else { + $disabled = ""; } print "