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

This commit is contained in:
Andrew Dolgov 2013-06-27 21:05:10 +04:00
parent ce920ec148
commit fac0964053
1 changed files with 3 additions and 3 deletions

View File

@ -361,7 +361,7 @@ class Feeds extends Handler_Protected {
make_local_datetime($line["date_entered"], false));
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);
}
@ -456,7 +456,7 @@ class Feeds extends Handler_Protected {
if (get_pref('SHOW_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\"";
$reply['content'] .= "<span $excerpt_hidden
id=\"CEXC-$id\" class=\"cdmExcerpt\"> - $content_preview</span>";
id=\"CEXC-$id\" class=\"cdmExcerpt\">$content_preview</span>";
$reply['content'] .= "</span>";
if (!get_pref('VFEED_GROUP_BY_FEED')) {