From: Andrew Dolgov Date: Wed, 21 Sep 2011 04:59:35 +0000 (+0400) Subject: fix hiding image attachments when article contains image in unexpanded combined mode... X-Git-Tag: 1.5.6~21 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=b67897bff4cfd94508d24268353fc1815ef54b9c;p=tt-rss.git fix hiding image attachments when article contains image in unexpanded combined mode (closes #368) --- diff --git a/functions.php b/functions.php index 8c8f6fe9..93241fda 100644 --- a/functions.php +++ b/functions.php @@ -5472,22 +5472,18 @@ } } - 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 = " "; - } else { - $article_content = ''; - } - $reply['content'] .= "
"; if ($line['note']) { $reply['content'] .= format_article_note($id, $line['note']); } $reply['content'] .= "
"; - $reply['content'] .= "$article_content"; + $reply['content'] .= ""; + $reply['content'] .= $expand_cdm ? $article_content : ''; + $reply['content'] .= ""; $tmp_result = db_query($link, "SELECT always_display_enclosures FROM ttrss_feeds WHERE id = ".