]> git.wh0rd.org Git - tt-rss.git/commitdiff
truncate title in feedlist
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Fri, 12 Nov 2010 19:17:57 +0000 (22:17 +0300)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Fri, 12 Nov 2010 19:17:57 +0000 (22:17 +0300)
functions.php

index d60ec0ca8273d5d47cef6adb73738a0bc682c7f2..479915700ad7f14139fb91b3c07c4266f9586fa2 100644 (file)
                        $link_title = "Updated: $last_updated";
                }
 
+               $feed_title = truncate_string($feed_title, 30);
+
                $feed = "<span class='feedlink' title=\"$link_title\" id=\"FEEDL-$feed_id\" href=\"#\"
                        onclick=\"viewfeed('$feed_id');\">$feed_title</span>";
 
                                $cv["xmsg"] = getFeedArticles($link, $id)." ".__("total");
 
                        if ($active_feed && $id == $active_feed)
-                               $cv["title"] = $line["title"];
+                               $cv["title"] = truncate_string($line["title"], 30);
 
                        array_push($ret_arr, $cv);