]> git.wh0rd.org Git - tt-rss.git/commitdiff
do not show lone dash in collapsed cdm when content preview is disabled
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Thu, 27 Jun 2013 17:05:10 +0000 (21:05 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Thu, 27 Jun 2013 17:05:10 +0000 (21:05 +0400)
classes/feeds.php

index 83736925c8a7a58b75c45c0182567341e36e1b15..33f239ee6ad128194405a377e238edfaf742b391 100644 (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 = " &mdash; " . 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')) {