From 7104401a0884ec2dc08e2b692d5a8edd28b37029 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Mon, 14 Sep 2009 16:52:26 +0000 Subject: alert noncreateable var/urlcache --- it_url.class | 3 +++ 1 file changed, 3 insertions(+) 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)) -- cgit v1.2.3