only try to cache images when cache dir is writable

This commit is contained in:
Andrew Dolgov 2011-12-26 13:18:16 +04:00
parent 3c696512fc
commit c58677987b
1 changed files with 1 additions and 1 deletions

View File

@ -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); $entry_content = cache_images($entry_content, $site_url, $debug_enabled);
if ($_REQUEST["xdebug"] == 2) { if ($_REQUEST["xdebug"] == 2) {