]> git.wh0rd.org - tt-rss.git/blobdiff - functions.php
misc dialog tweaks
[tt-rss.git] / functions.php
index 2c2a81c5666090e2d8204df3331be522b32d1d74..eabb5a3589627a35bbc8dedfd13d5d6ac1c5b63b 100644 (file)
                        } else {
                                $is_selected = "";
                        }
+
+                       $title = truncate_string(htmlspecialchars($line["title"]), 40);
+
                        printf("<option $is_selected value='%d'>%s</option>", 
-                               $line["id"], htmlspecialchars($line["title"]));
+                               $line["id"], $title);
                }
        
                print "</select>";