]> git.wh0rd.org - tt-rss.git/commitdiff
feed editor: truncate linked-to feed title
authorAndrew Dolgov <fox@bah.org.ru>
Fri, 9 Oct 2009 09:25:58 +0000 (13:25 +0400)
committerAndrew Dolgov <fox@bah.org.ru>
Fri, 9 Oct 2009 09:25:58 +0000 (13:25 +0400)
modules/pref-feeds.php

index b0269243e4f22b75cd49e277369edd847458e3d8..6b510bc9d6dccb4398f57a3464f88f258f4caae2 100644 (file)
                                        } else {
                                                $is_selected = "";
                                        }
+
+                                       $title = truncate_string(htmlspecialchars($tmp_line["title"]), 40);
+
                                        printf("<option $is_selected value='%d'>%s</option>", 
-                                               $tmp_line["id"], $tmp_line["title"]);
+                                               $tmp_line["id"], $title);
                                }
 
                        print "</select>";