]> git.wh0rd.org Git - tt-rss.git/commitdiff
only try to cache images when cache dir is writable
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Mon, 26 Dec 2011 09:18:16 +0000 (13:18 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Mon, 26 Dec 2011 09:18:16 +0000 (13:18 +0400)
include/rssfuncs.php

index 821d6b1758262054e2de620a0572ac7975fe187e..4cb81cd063b947250a427a52de9e293180609d4d 100644 (file)
                                        }
                                }
 
-                               if ($cache_images)
+                               if ($cache_images && is_writable(CACHE_DIR . '/images'))
                                        $entry_content = cache_images($entry_content, $site_url, $debug_enabled);
 
                                if ($_REQUEST["xdebug"] == 2) {