]> git.wh0rd.org - tt-rss.git/commitdiff
fix bug with image attatchment settings
authorTerrence Ezrol <ezterry3@gmail.com>
Sun, 7 Apr 2013 23:28:03 +0000 (19:28 -0400)
committerTerrence Ezrol <ezterry3@gmail.com>
Sun, 7 Apr 2013 23:35:44 +0000 (19:35 -0400)
include/functions.php

index f2d25db0775cb6e3e9c82b0e1142299818c58d02..eff3cb0ea02070532c7ac2d6c3bad099acb4170c 100644 (file)
                        ".SUBSTRING_FOR_DATE."(updated,1,16) as updated,
                        (SELECT site_url FROM ttrss_feeds WHERE id = feed_id) as site_url,
                        (SELECT hide_images FROM ttrss_feeds WHERE id = feed_id) as hide_images,
+                       (SELECT always_display_enclosures FROM ttrss_feeds WHERE id = feed_id) as always_display_enclosures,
                        num_comments,
                        tag_cache,
                        author,
                        $rv['content'] .= "<div class=\"postContent\">";
 
                        $rv['content'] .= $line["content"];
-
                        $rv['content'] .= format_article_enclosures($link, $id,
-                               $always_display_enclosures, $line["content"], $line["hide_images"]);
+                               sql_bool_to_bool($line["always_display_enclosures"]),
+                               $line["content"],
+                               sql_bool_to_bool($line["hide_images"]));
 
                        $rv['content'] .= "</div>";