summaryrefslogtreecommitdiff
path: root/backend.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2005-11-23 08:13:57 +0100
committerAndrew Dolgov <[email protected]>2005-11-23 08:13:57 +0100
commit54d3ba50affc7e48ea4e823c3ece03e3f9033df3 (patch)
treeb4886939469a7fa09861469245f47850e25d5c48 /backend.php
parent91ff844a863a374a00e1604348943f1815e7e4e0 (diff)
feed editor now respects ENABLE_FEED_CATS
Diffstat (limited to 'backend.php')
-rw-r--r--backend.php58
1 files changed, 32 insertions, 26 deletions
diff --git a/backend.php b/backend.php
index f0ad01499..28e636a42 100644
--- a/backend.php
+++ b/backend.php
@@ -1273,8 +1273,10 @@
print "<td><a href=\"javascript:editFeed($feed_id);\">" .
$edit_link . "</a></td>";
- print "<td><a href=\"javascript:editFeed($feed_id);\">" .
- $edit_cat . "</a></td>";
+ if (get_pref($link, 'ENABLE_FEED_CATS')) {
+ print "<td><a href=\"javascript:editFeed($feed_id);\">" .
+ $edit_cat . "</a></td>";
+ }
if ($line["update_interval"] == "0")
$line["update_interval"] = "Default";
@@ -1298,7 +1300,10 @@
print "<td>$edit_title</td>";
print "<td>$edit_link</td>";
- print "<td>$edit_cat</td>";
+
+ if (get_pref($link, 'ENABLE_FEED_CATS')) {
+ print "<td>$edit_cat</td>";
+ }
if ($line["update_interval"] == "0")
$line["update_interval"] = "Default";
@@ -1320,32 +1325,33 @@
print "<td><input id=\"iedit_title\" value=\"$edit_title\"></td>";
print "<td><input id=\"iedit_link\" value=\"$edit_link\"></td>";
- print "<td>";
-
- print "<select id=\"iedit_fcat\">";
-
- print "<option id=\"0\">Uncategorized</option>";
-
- if (db_num_rows($result) > 0) {
- print "<option disabled>--------</option>";
- }
-
- $tmp_result = db_query($link, "SELECT id,title FROM ttrss_feed_categories
- WHERE owner_uid = ".$_SESSION["uid"]." ORDER BY title");
+ if (get_pref($link, 'ENABLE_FEED_CATS')) {
- while ($tmp_line = db_fetch_assoc($tmp_result)) {
- if ($tmp_line["id"] == $line["cat_id"]) {
- $is_selected = "selected";
- } else {
- $is_selected = "";
+ print "<td>";
+ print "<select id=\"iedit_fcat\">";
+ print "<option id=\"0\">Uncategorized</option>";
+
+ if (db_num_rows($result) > 0) {
+ print "<option disabled>--------</option>";
}
- printf("<option $is_selected id='%d'>%s</option>",
- $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("<option $is_selected id='%d'>%s</option>",
+ $tmp_line["id"], $tmp_line["title"]);
+ }
+
+ print "</select></td>";
+ print "</td>";
- print "</select></td>";
-
- print "</td>";
+ }
print "<td><input id=\"iedit_updintl\"
value=\"".$line["update_interval"]."\"></td>";