diff options
author | Urban Müller | 2019-01-04 14:57:52 +0100 |
---|---|---|
committer | Urban Müller | 2019-01-04 14:57:52 +0100 |
commit | 6c954dfe10672c290329e6a19210b74b30c39132 (patch) | |
tree | bc5592e1828c1d17272094ac50b6d3f32a494e8a /it_url.class | |
parent | c0e5e18599e0cc1eb4c1a64a278921055e6e2f7d (diff) | |
download | itools-6c954dfe10672c290329e6a19210b74b30c39132.tar.gz itools-6c954dfe10672c290329e6a19210b74b30c39132.tar.bz2 itools-6c954dfe10672c290329e6a19210b74b30c39132.zip |
enable get_cache warnings for everyone
Diffstat (limited to 'it_url.class')
-rw-r--r-- | it_url.class | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/it_url.class b/it_url.class index bfbb806..6e32019 100644 --- a/it_url.class +++ b/it_url.class @@ -427,8 +427,8 @@ static function get_cache_filename($p) /** * Store contents of url in a file and return file name. Threadsafe: Provides locking. Called statically. * Requires webserver writeable directory in $p['cachdedir']. Params in associative array p: - * @param $p['id'] RECOMMENDED: If you need more than one type of cache (e.g. different maxage) you should specify an id * @param $p['url'] url to get + * @param $p['id'] mandatory: dirname for cached files; same id should have same expire policy * @param $p['headers'] optional array of HTTP headers to send * @param $p['cachedir'] directory to store cache files in, @see get_cache_dir * @param $p['timeout'] timeout in seconds, default 10. fractions allowed @@ -449,7 +449,7 @@ function get_cache($p = array()) $p['cachedir'] = it_url::get_cache_dir($p); if (!$p['id']) - it::error(['to' => "mueller", 'title' => "calling get_cache without id"]); + it::error("calling get_cache without id"); @mkdir($p['cachedir']); @mkdir(dirname($path)); |