From: Andrew Dolgov Date: Wed, 4 Oct 2006 06:14:16 +0000 (+0100) Subject: fix for feed cat editor when no categories are defined X-Git-Tag: 1.2.4~12 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=6f5b1e042c62023f9341d01120828c01a10a502b;p=tt-rss.git fix for feed cat editor when no categories are defined --- diff --git a/modules/pref-feeds.php b/modules/pref-feeds.php index 695dea20..49157dfc 100644 --- a/modules/pref-feeds.php +++ b/modules/pref-feeds.php @@ -650,35 +650,34 @@ print ""; - print "
-
"; - - print "
"; - - if ($action == "edit") { - print " - "; - } else { + } else { + print "

No feed categories defined.

"; + } - print " - - "; - - } + print "
+
"; - print "
"; + print "
"; + if ($action == "edit") { + print " + "; } else { - print "

No feed categories defined.

"; + + print " + + "; } print "
"; + print ""; + return; } @@ -972,128 +971,10 @@ } } else { - print "

No feeds defined.

"; +// print "

No feeds defined.

"; } - -/* if (get_pref($link, 'ENABLE_FEED_CATS')) { - - print "

Edit Categories

"; - - print "
-   -
"; - - $result = db_query($link, "SELECT title,id FROM ttrss_feed_categories - WHERE owner_uid = ".$_SESSION["uid"]." - ORDER BY title"); - - if (db_num_rows($result) != 0) { - - print "
"; - - print "

"; - - print " - - "; - - $lnum = 0; - - while ($line = db_fetch_assoc($result)) { - - $class = ($lnum % 2) ? "even" : "odd"; - - $cat_id = $line["id"]; - - $edit_cat_id = $_GET["id"]; - - if ($subop == "editCat" && $cat_id != $edit_cat_id) { - $class .= "Grayed"; - $this_row_id = ""; - } else { - $this_row_id = "id=\"FCATR-$cat_id\""; - } - - print ""; - - $edit_title = htmlspecialchars(db_unescape_string($line["title"])); - - if (!$edit_cat_id || $subop != "editCat") { - - print ""; - - print ""; - - } else if ($cat_id != $edit_cat_id) { - - print ""; - - print ""; - - } else { - - print ""; - - print ""; - - } - - print ""; - - ++$lnum; - } - - print "
- Select: - All, - None - "; - - print "
 Title
" . - $edit_title . "$edit_title"; - - print ""; - print ""; - print ""; - - print "
"; - - print "

"; - - print "

"; - - if ($subop == "editCat") { - print "Edit category:  - - "; - } else { - - print " - Selection:  - - "; - - } - - } else { - print "

No feed categories defined.

"; - } - } */ - print "

Import OPML

File: