diff options
author | Urban Müller | 2009-09-14 16:52:26 +0000 |
---|---|---|
committer | Urban Müller | 2009-09-14 16:52:26 +0000 |
commit | 7104401a0884ec2dc08e2b692d5a8edd28b37029 (patch) | |
tree | ff0726d912d83165c823b18094a6eee426830057 | |
parent | 8197be3061db8bd2f57910fa30d6adf34b04e824 (diff) | |
download | itools-7104401a0884ec2dc08e2b692d5a8edd28b37029.tar.gz itools-7104401a0884ec2dc08e2b692d5a8edd28b37029.tar.bz2 itools-7104401a0884ec2dc08e2b692d5a8edd28b37029.zip |
alert noncreateable var/urlcache
-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)) |