Removed default values.
Signed-off-by: Roland Häder <roland@mxchange.org>
This commit is contained in:
parent
15fd6822e4
commit
5de0008b48
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue