From: Andrew Dolgov Date: Mon, 11 Jan 2010 10:47:15 +0000 (+0300) Subject: do not display image attachments inline when STRIP_IMAGES is enabled X-Git-Tag: 1.4.0~103 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=fbaca24658379ea3efe92dbeb0f779f95c02fe6a;p=tt-rss.git do not display image attachments inline when STRIP_IMAGES is enabled --- diff --git a/functions.php b/functions.php index d7ebef3f..057fa447 100644 --- a/functions.php +++ b/functions.php @@ -4814,12 +4814,14 @@ print "
"; - if ($always_display_enclosures || !preg_match("/\"".htmlspecialchars($entry["filename"])."\"

"; + if (!get_pref($link, "STRIP_IMAGES")) { + if ($always_display_enclosures || !preg_match("/\"".htmlspecialchars($entry["filename"])."\"

"; + } } } } @@ -5392,12 +5394,14 @@ $always_display_enclosures = db_fetch_result($tmp_result, 0, "always_display_enclosures"); - if ($always_display_enclosures || !preg_match("/img/i", $article_content)) { - foreach ($entries as $entry) { - if (preg_match("/image/", $entry["type"])) { - print "

\"".htmlspecialchars($entry["filename"])."\"

"; + if (!get_pref($link, "STRIP_IMAGES")) { + if ($always_display_enclosures || !preg_match("/img/i", $article_content)) { + foreach ($entries as $entry) { + if (preg_match("/image/", $entry["type"])) { + print "

\"".htmlspecialchars($entry["filename"])."\"

"; + } } } }