diff options
author | Urban Müller | 2019-01-03 20:31:14 +0100 |
---|---|---|
committer | Urban Müller | 2019-01-03 20:32:15 +0100 |
commit | c0e5e18599e0cc1eb4c1a64a278921055e6e2f7d (patch) | |
tree | b5aa71206c3bd174f6d316376dc0a363f0099354 | |
parent | 494896091ecb4d8422848636347cf00f5e711d34 (diff) | |
download | itools-c0e5e18599e0cc1eb4c1a64a278921055e6e2f7d.tar.gz itools-c0e5e18599e0cc1eb4c1a64a278921055e6e2f7d.tar.bz2 itools-c0e5e18599e0cc1eb4c1a64a278921055e6e2f7d.zip |
warn about get_cache calls without ID
-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 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)); |