]> git.wh0rd.org - tt-rss.git/blobdiff - mobile/functions.php
new style labels (bump schema)
[tt-rss.git] / mobile / functions.php
index a37bc02073f46182a363f34ad3adf789110065c3..db8e2947b199aac2b43f14b2b565f6624d017ce8 100644 (file)
                                print "</ul>";
                        }
 
-                       if (GLOBAL_ENABLE_LABELS && get_pref($link, 'ENABLE_LABELS')) {
        
-                               $result = db_query($link, "SELECT id,description FROM
-                                       ttrss_labels WHERE owner_uid = '$owner_uid' ORDER by description");
-               
+                               $result = db_query($link, "SELECT id,caption FROM                                       
+                                       ttrss_labels2 WHERE owner_uid = '$owner_uid' ORDER by caption");
+
                                if (db_num_rows($result) > 0) {
                                        if (get_pref($link, 'ENABLE_FEED_CATS')) {
                                                print "<li class=\"feedCat\">".__("Labels")."</li>";
@@ -81,8 +80,6 @@
                
                                while ($line = db_fetch_assoc($result)) {
        
-                                       error_reporting (0);
-               
                                        $count = getFeedUnread($link, -$line["id"]-11);
        
                                        $class = "label";
                                        if ($count > 0) {
                                                $class .= "Unread";
                                        }
-                                       
-                                       error_reporting (DEFAULT_ERROR_LEVEL);
-       
+                       
                                        printMobileFeedEntry(-$line["id"]-11, 
-                                               $class, $line["description"], $count, "../images/label.png", $link);
+                                               $class, $line["caption"], $count, "../images/label.png", $link);
                
                                }
 
                                        }
                                }
 
-                       }
 
                        if (get_pref($link, 'ENABLE_FEED_CATS')) {
                                $order_by_qpart = "category,title";