]> git.wh0rd.org Git - tt-rss.git/commitdiff
adding text attribute to categories
authorMatthew Katz <mrfulcrum@nulletch64.dreamhost.com>
Tue, 13 Apr 2010 02:38:51 +0000 (22:38 -0400)
committerMatthew Katz <mrfulcrum@nulletch64.dreamhost.com>
Tue, 13 Apr 2010 02:38:51 +0000 (22:38 -0400)
fixed query for enable_feed_cats to actually query for the user instead of overall.

opml.php

index 2e9f2368f8b2fca06419a6a09fff7931bcc9bfa5..d808c8f9e3a45d109710eac626e9bb7431a74e0f 100644 (file)
--- 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,
                        $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;