diff options
author | Andrew Dolgov <[email protected]> | 2011-12-26 13:18:16 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2011-12-26 13:18:16 +0400 |
commit | c58677987b22d0aecacff32cd07054ef3912e369 (patch) | |
tree | 5a0bda8be290a8f41b3729131be3b6debd45f999 /include/rssfuncs.php | |
parent | 3c696512fcf85331158f26078616e5684f46a68e (diff) |
only try to cache images when cache dir is writable
Diffstat (limited to 'include/rssfuncs.php')
-rw-r--r-- | include/rssfuncs.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/rssfuncs.php b/include/rssfuncs.php index 821d6b175..4cb81cd06 100644 --- a/include/rssfuncs.php +++ b/include/rssfuncs.php @@ -678,7 +678,7 @@ } } - 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) { |