1
0
Fork 0

Removed default values.

Signed-off-by: Roland Häder <roland@mxchange.org>
This commit is contained in:
Roland Häder 2021-03-11 12:45:43 +01:00
parent 15fd6822e4
commit 5de0008b48
No known key found for this signature in database
GPG key ID: D21FE19177B10FD5

View file

@ -133,7 +133,7 @@ class Proxy extends BaseModule
// direct cache , store under ./proxy/
$filename = $basepath . '/proxy/' . ProxyUtils::proxifyUrl($request['url'], true);
file_put_contents($filename, $image->asString());
chmod($filename, DI::config()->get('system', 'proxy_file_chmod', 0640));
chmod($filename, DI::config()->get('system', 'proxy_file_chmod'));
} elseif($cachefile !== '') {
// cache file
file_put_contents($cachefile, $image->asString());
@ -153,7 +153,7 @@ class Proxy extends BaseModule
if ($direct_cache && $request['sizetype'] != '') {
$filename = $basepath . '/proxy/' . ProxyUtils::proxifyUrl($request['url'], true) . $request['sizetype'];
file_put_contents($filename, $image->asString());
chmod($filename, DI::config()->get('system', 'proxy_file_chmod', 0640));
chmod($filename, DI::config()->get('system', 'proxy_file_chmod'));
}
self::responseImageHttpCache($image);