summaryrefslogtreecommitdiff
path: root/opml.php
diff options
context:
space:
mode:
authorMatthew Katz <[email protected]>2010-04-12 22:38:51 -0400
committerMatthew Katz <[email protected]>2010-04-12 22:38:51 -0400
commitfee909d5aa384dfaceaaa92653db8c09745123f9 (patch)
treea68877ab0a544510a0db7032f072de4fff13f77c /opml.php
parenta4234239568f14dbad890dd7eeb3208fe5922193 (diff)
adding text attribute to categories
fixed query for enable_feed_cats to actually query for the user instead of overall.
Diffstat (limited to 'opml.php')
-rw-r--r--opml.php13
1 files changed, 11 insertions, 2 deletions
diff --git a/opml.php b/opml.php
index 2e9f2368f..d808c8f9e 100644
--- a/opml.php
+++ b/opml.php
@@ -32,7 +32,9 @@
$where = "WHERE owner_uid = '$owner_uid' AND private IS false";
}
- if (get_pref($link, 'ENABLE_FEED_CATS')) {
+
+
+ if (get_pref($link, 'ENABLE_FEED_CATS', $owner_uid) == true) {
$cat_mode = true;
$select = "SELECT
title, feed_url, site_url,
@@ -40,6 +42,13 @@
$orderby = "ORDER BY cat_title, title";
}
+ else{
+ $cat_feed = get_pref($link, 'ENABLE_FEED_CATS');
+ print "<!-- feeding cats is not enabled -->";
+ print "<!-- $cat_feed -->";
+
+ }
+
$result = db_query($link, $select." FROM ttrss_feeds ".$where." ".$orderby);
@@ -59,7 +68,7 @@
}
if ($cat_title) {
- print "<outline title=\"$cat_title\">\n";
+ print "<outline title=\"$cat_title\" text=\"$cat_title\" >\n";
}
$old_cat_title = $cat_title;