mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-08 17:38:49 +00:00
The tempory path is now fetched from a new function (that ensures that the value is set correctly)
This commit is contained in:
parent
8220fca1e1
commit
ca0fcebc15
5 changed files with 7 additions and 7 deletions
|
@ -475,7 +475,7 @@ function appnet_send(&$a,&$b) {
|
|||
|
||||
if (isset($post["image"])) {
|
||||
$img_str = fetch_url($post['image'],true, $redirects, 10);
|
||||
$tempfile = tempnam(get_config("system","temppath"), "cache");
|
||||
$tempfile = tempnam(get_temppath(), "cache");
|
||||
file_put_contents($tempfile, $img_str);
|
||||
|
||||
try {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue