From ba79634c2df8a52009eeee03a4cfbcfa212432ff Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 28 Mar 2013 10:49:47 +0400 Subject: remove inlined images in bwlimit mode --- include/functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/functions.php') diff --git a/include/functions.php b/include/functions.php index 7cc792e63..dae87dab3 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("/