summaryrefslogtreecommitdiff
path: root/itjs.class
diff options
context:
space:
mode:
authorChristian Helbling2014-09-15 11:42:48 +0200
committerChristian Helbling2014-09-15 11:42:48 +0200
commit7b80022d7ec241f522d505fa790b955eb841f1a2 (patch)
tree670fdbdc5b36027b629b71fe8d40f75f4c939f14 /itjs.class
parent32a2a648a65302e09a03fa8c84d22dc687c9c52e (diff)
downloaditools-7b80022d7ec241f522d505fa790b955eb841f1a2.tar.gz
itools-7b80022d7ec241f522d505fa790b955eb841f1a2.tar.bz2
itools-7b80022d7ec241f522d505fa790b955eb841f1a2.zip
fix crcurl for doc/appcache.php - path was wrong
Diffstat (limited to 'itjs.class')
-rw-r--r--itjs.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/itjs.class b/itjs.class
index 3d144d2..fb3ac13 100644
--- a/itjs.class
+++ b/itjs.class
@@ -199,7 +199,7 @@ function crcurl($url)
if (it::match('^http', $url)) # remote url, must fetch to crc
$fn = it_url::get_cache(array('url' => $url, 'maxage' => 3600));
else
- $fn = ($path = it::match("^//lib(/.*)", $url)) ? "/www/lib.search.ch" . $path : $GLOBALS['ULTRAHOME'] . $url;
+ $fn = ($m = it::match("^//(\w+)(/.*)", $url)) ? "/www/$m[0].search.ch" . $m[1] : $GLOBALS['ULTRAHOME'] . $url;
return it::match('#', $url) ? U(trim($url, "#")) : U($url, array('c' => self::checksum([$fn])));
}