]> git.wh0rd.org Git - tt-rss.git/commitdiff
fix preview display in headlines
authorAndrew Dolgov <fox@bah.spb.su>
Sun, 27 Nov 2005 16:16:08 +0000 (17:16 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Sun, 27 Nov 2005 16:16:08 +0000 (17:16 +0100)
backend.php

index 7f594f8b1f4bd52a44586fe1a3317521ad633dc5..554026963cd354b2fa1624794a6186e1430fa520 100644 (file)
                                        SUBSTRING(last_read,1,19) as last_read_noms,
                                        $vfeed_query_part
                                        SUBSTRING(updated,1,19) as updated_noms,
-                                       SUBSTRING(content,1,101) as content_preview
+                                       content as content_preview
                                FROM
                                        ttrss_entries,ttrss_user_entries
                                WHERE
                                SUBSTRING(last_read,1,19) as last_read_noms,
                                $vfeed_query_part
                                SUBSTRING(updated,1,19) as updated_noms,
-                               SUBSTRING(content,1,101) as content_preview
+                               content
                                FROM
                                        ttrss_entries,ttrss_user_entries,ttrss_tags
                                WHERE
                                print "<td class='hlContent'>$content_link";
                                if (get_pref($link, 'SHOW_CONTENT_PREVIEW')) {
                                        $content_preview = truncate_string(strip_tags($line["content_preview"]), 
-                                               100);
+                                               101);
+
                                        print "<span class=\"contentPreview\"> - $content_preview</span>";
                                }
                                print "</td>";