From b60d311bafc1ef55304264cc2c1c6310d3bce29e Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Tue, 29 Mar 2016 14:13:24 +0200 Subject: send warnings if fetch fails; would create noninformative warnings later on anyway --- itjs.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'itjs.class') 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);; -- cgit v1.2.3