summaryrefslogtreecommitdiff
path: root/it_url.class
diff options
context:
space:
mode:
authorUrban Müller2019-01-03 20:31:14 +0100
committerUrban Müller2019-01-03 20:32:15 +0100
commitc0e5e18599e0cc1eb4c1a64a278921055e6e2f7d (patch)
treeb5aa71206c3bd174f6d316376dc0a363f0099354 /it_url.class
parent494896091ecb4d8422848636347cf00f5e711d34 (diff)
downloaditools-c0e5e18599e0cc1eb4c1a64a278921055e6e2f7d.tar.gz
itools-c0e5e18599e0cc1eb4c1a64a278921055e6e2f7d.tar.bz2
itools-c0e5e18599e0cc1eb4c1a64a278921055e6e2f7d.zip
warn about get_cache calls without ID
Diffstat (limited to 'it_url.class')
-rw-r--r--it_url.class3
1 files changed, 3 insertions, 0 deletions
diff --git a/it_url.class b/it_url.class
index dbc1083..bfbb806 100644
--- a/it_url.class
+++ b/it_url.class
@@ -448,6 +448,9 @@ function get_cache($p = array())
$path = it_url::get_cache_filename($p); # Must be before changing cachedir below
$p['cachedir'] = it_url::get_cache_dir($p);
+ if (!$p['id'])
+ it::error(['to' => "mueller", 'title' => "calling get_cache without id"]);
+
@mkdir($p['cachedir']);
@mkdir(dirname($path));