From: Andrew Dolgov Date: Thu, 28 Mar 2013 06:49:47 +0000 (+0400) Subject: remove inlined images in bwlimit mode X-Git-Tag: 1.7.6~214 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=ba79634c2df8a52009eeee03a4cfbcfa212432ff;p=tt-rss.git remove inlined images in bwlimit mode --- diff --git a/include/functions.php b/include/functions.php index 7cc792e6..dae87dab 100644 --- a/include/functions.php +++ b/include/functions.php @@ -2659,7 +2659,7 @@ if ($entry->nodeName == 'img') { if (($owner && get_pref($link, "STRIP_IMAGES", $owner)) || - $force_remove_images) { + $force_remove_images || $_SESSION["bw_limit"]) { $p = $doc->createElement('p'); @@ -3663,7 +3663,7 @@ array_push($entries, $entry); } - if ($_SESSION['uid'] && !get_pref($link, "STRIP_IMAGES")) { + if ($_SESSION['uid'] && !get_pref($link, "STRIP_IMAGES") && !$_SESSION["bw_limit"]) { if ($always_display_enclosures || !preg_match("/