From fac096405338e0f46fa248320318436d862678fc Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 27 Jun 2013 21:05:10 +0400 Subject: [PATCH] do not show lone dash in collapsed cdm when content preview is disabled --- classes/feeds.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/classes/feeds.php b/classes/feeds.php index 83736925c..33f239ee6 100644 --- a/classes/feeds.php +++ b/classes/feeds.php @@ -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'] .= " - $content_preview"; + $reply['content'] .= "$content_preview"; } } @@ -575,7 +575,7 @@ class Feeds extends Handler_Protected { $excerpt_hidden = "style=\"display : none\""; $reply['content'] .= " - $content_preview"; + id=\"CEXC-$id\" class=\"cdmExcerpt\">$content_preview"; $reply['content'] .= ""; if (!get_pref('VFEED_GROUP_BY_FEED')) {