diff options
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)); |