diff options
Diffstat (limited to 'it_url.class')
-rw-r--r-- | it_url.class | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/it_url.class b/it_url.class index 5393de9..dd5978b 100644 --- a/it_url.class +++ b/it_url.class @@ -387,6 +387,9 @@ function get_cache($p = array()) @mkdir($p['cachedir']); @mkdir(dirname($path)); + if (!is_writable(dirname($path))) + it::error(dirname($path) . " not writable"); + if ($filemtime = it_url::_expired($path, $p['maxage'])) # Outdated(non-zero int) or non-existant(true)? { if ($lock = it_url::_lock($path)) |