diff --git a/modules/pref-feeds.php b/modules/pref-feeds.php
index fb791a930..76e22d7d4 100644
--- a/modules/pref-feeds.php
+++ b/modules/pref-feeds.php
@@ -517,6 +517,65 @@
}
+ if ($subop == "categorizeDlg") {
+ $action = $_REQUEST["action"];
+
+ 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 "
";
+
+ $lnum = 0;
+
+ while ($line = db_fetch_assoc($result)) {
+
+ $class = ($lnum % 2) ? "even" : "odd";
+
+ $cat_id = $line["id"];
+
+ print "- ";
+
+ $edit_title = htmlspecialchars($line["title"]);
+
+ print "" .
+ $edit_title . "";
+
+ $tmp_result = db_query($link, "SELECT id, title FROM ttrss_feeds WHERE owner_uid = ".
+ $_SESSION["uid"]. " AND cat_id = $cat_id ORDER BY title");
+
+ print "
";
+
+ while ($tmp_line = db_fetch_assoc($tmp_result)) {
+ print "- " . $tmp_line["title"] . "
";
+
+ }
+
+ print "
";
+
+ print " ";
+
+ ++$lnum;
+ }
+
+ print "
";
+
+
+ print "
";
+
+ print "
";
+ }
+
+ return;
+ }
+
if ($subop == "editCats") {
$action = $_REQUEST["action"];
@@ -964,6 +1023,11 @@
print "