fix preview display in headlines

This commit is contained in:
Andrew Dolgov 2005-11-27 17:16:08 +01:00
parent 7acf5208a4
commit 2e85e07be8

View file

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