]> git.wh0rd.org - tt-rss.git/commitdiff
fix hiding image attachments when article contains image in unexpanded combined mode...
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 21 Sep 2011 04:59:35 +0000 (08:59 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 21 Sep 2011 04:59:35 +0000 (08:59 +0400)
functions.php

index 8c8f6fe9268e44d318d5b674f16c9216b15979e3..93241fda3ae68635f3b022fae3204c87d8467961 100644 (file)
                                                }
                                        }
 
-                                       if ($expand_cdm) {
-                                               $article_content = sanitize_rss($link, $line["content_preview"],
+                                       $article_content = sanitize_rss($link, $line["content_preview"],
                                                        false, false, $feed_site_url);
 
-                                               if (!$article_content) $article_content = "&nbsp;";
-                                       } else {
-                                               $article_content = '';
-                                       }
-
                                        $reply['content'] .= "<div id=\"POSTNOTE-$id\">";
                                        if ($line['note']) {
                                                $reply['content'] .= format_article_note($id, $line['note']);
                                        }
                                        $reply['content'] .= "</div>";
 
-                                       $reply['content'] .= "<span id=\"CWRAP-$id\">$article_content</span>";
+                                       $reply['content'] .= "<span id=\"CWRAP-$id\">";
+                                       $reply['content'] .= $expand_cdm ? $article_content : '';
+                                       $reply['content'] .= "</span>";
 
                                        $tmp_result = db_query($link, "SELECT always_display_enclosures FROM
                                                ttrss_feeds WHERE id = ".