The temporary paths (temp, lock, itemcache) are now detected automatically when used.
This commit is contained in:
parent
38fb43702f
commit
5ed5773f57
8 changed files with 75 additions and 13 deletions
|
|
@ -764,7 +764,7 @@ function get_photo_info($url) {
|
|||
if (is_null($data)) {
|
||||
$img_str = fetch_url($url, true, $redirects, 4);
|
||||
|
||||
$tempfile = tempnam(get_config("system","temppath"), "cache");
|
||||
$tempfile = tempnam(get_temppath(), "cache");
|
||||
file_put_contents($tempfile, $img_str);
|
||||
$data = getimagesize($tempfile);
|
||||
unlink($tempfile);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue