mirror of
https://github.com/friendica/friendica
synced 2024-12-23 14:00:15 +00:00
Removed default values.
Signed-off-by: Roland Häder <roland@mxchange.org>
This commit is contained in:
parent
15fd6822e4
commit
5de0008b48
1 changed files with 2 additions and 2 deletions
|
@ -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