]> git.wh0rd.org Git - tt-rss.git/commitdiff
remove inlined images in bwlimit mode
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Thu, 28 Mar 2013 06:49:47 +0000 (10:49 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Thu, 28 Mar 2013 06:49:47 +0000 (10:49 +0400)
include/functions.php

index 7cc792e63581b2b3d9c594ba06dba657b6a35b76..dae87dab3995b2cf70e81c57a54b6aedf7724f0e 100644 (file)
 
                                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');
 
                                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("/<img/i", $article_content)) {