do not show lone dash in collapsed cdm when content preview is disabled

master
Andrew Dolgov 12 years ago
parent ce920ec148
commit fac0964053

@ -361,7 +361,7 @@ class Feeds extends Handler_Protected {
make_local_datetime($line["date_entered"], false)); make_local_datetime($line["date_entered"], false));
if (get_pref('SHOW_CONTENT_PREVIEW')) { if (get_pref('SHOW_CONTENT_PREVIEW')) {
$content_preview = truncate_string(strip_tags($line["content_preview"]), $content_preview = " — " . truncate_string(strip_tags($line["content_preview"]),
250); 250);
} }
@ -456,7 +456,7 @@ class Feeds extends Handler_Protected {
if (get_pref('SHOW_CONTENT_PREVIEW')) { if (get_pref('SHOW_CONTENT_PREVIEW')) {
if ($content_preview) { if ($content_preview) {
$reply['content'] .= "<span class=\"contentPreview\"> - $content_preview</span>"; $reply['content'] .= "<span class=\"contentPreview\">$content_preview</span>";
} }
} }
@ -575,7 +575,7 @@ class Feeds extends Handler_Protected {
$excerpt_hidden = "style=\"display : none\""; $excerpt_hidden = "style=\"display : none\"";
$reply['content'] .= "<span $excerpt_hidden $reply['content'] .= "<span $excerpt_hidden
id=\"CEXC-$id\" class=\"cdmExcerpt\"> - $content_preview</span>"; id=\"CEXC-$id\" class=\"cdmExcerpt\">$content_preview</span>";
$reply['content'] .= "</span>"; $reply['content'] .= "</span>";
if (!get_pref('VFEED_GROUP_BY_FEED')) { if (!get_pref('VFEED_GROUP_BY_FEED')) {

Loading…
Cancel
Save