summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrban Müller2016-03-29 14:13:24 +0200
committerUrban Müller2016-03-29 14:13:24 +0200
commitb60d311bafc1ef55304264cc2c1c6310d3bce29e (patch)
tree7776afb1607681b23df4e82f56d495b0189ef17c
parent3c07208e5dfc961237bd7d5404dfcbc07fb3d4d1 (diff)
downloaditools-b60d311bafc1ef55304264cc2c1c6310d3bce29e.tar.gz
itools-b60d311bafc1ef55304264cc2c1c6310d3bce29e.tar.bz2
itools-b60d311bafc1ef55304264cc2c1c6310d3bce29e.zip
send warnings if fetch fails; would create noninformative warnings later on anyway
-rw-r--r--itjs.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/itjs.class b/itjs.class
index 145cb82..3fe6614 100644
--- a/itjs.class
+++ b/itjs.class
@@ -212,7 +212,7 @@ static function checksum($fnlist, $p = array())
function crcurl($url, $p = array())
{
if (it::match('^http', $url)) # remote url, must fetch to crc
- list($fn, $short_expire) = array(it_url::get_cache(array('url' => $url, 'maxage' => 3600, 'id' => "itjs_crcurl") + $p), false);
+ list($fn, $short_expire) = array(it_url::get_cache(array('url' => $url, 'maxage' => 3600, 'safety' => 1, 'id' => "itjs_crcurl") + $p), false);
else
list($fn, $short_expire) = array(($m = it::match("^//(\w+)(/.*)", $url)) ? "/www/$m[0].search.ch" . $m[1] : $GLOBALS['ULTRAHOME'] . $url, true);;