diff options
author | Urban Müller | 2007-02-14 17:39:25 +0000 |
---|---|---|
committer | Urban Müller | 2007-02-14 17:39:25 +0000 |
commit | d356adc84daa5c8648a9f04bca60557789067026 (patch) | |
tree | 24f7db2278522fddfec95d04f0e035d8a805510e | |
parent | 644d2ce2a0908d7af4229bfed49a09af8b38d976 (diff) | |
download | itools-d356adc84daa5c8648a9f04bca60557789067026.tar.gz itools-d356adc84daa5c8648a9f04bca60557789067026.tar.bz2 itools-d356adc84daa5c8648a9f04bca60557789067026.zip |
longer is shorter :)
-rw-r--r-- | url.class | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -366,10 +366,11 @@ function get_cache($p = array()) else touch($path); - if (($parts = parse_url($p['url'])) === false) - it::error('malformed url ' . $p['url']); if ($p['safety'] == 1 && !$result) + { + $parts = @parse_url($p['url']); it::error($p['it_error'] + array('title'=>"get_cache: download failures on {$p['url']}", 'id'=>$parts['host'])); # send err only if multi failure + } @unlink("$path.lock"); } |