Support for cleared boot.php

This commit is contained in:
Michael 2021-11-04 20:32:16 +00:00
parent 95622a0f0d
commit 6a349e7fd9
15 changed files with 38 additions and 25 deletions

View file

@ -2,6 +2,8 @@
namespace CodebirdSN;
use Friendica\Core\System;
/**
* A Twitter library in PHP.
*
@ -820,7 +822,7 @@ class CodebirdSN
}
// To-Do
$tempfile = tempnam(get_temppath(), "mimecheck");
$tempfile = tempnam(System::getTempPath(), "mimecheck");
file_put_contents($tempfile, $data);
$mime = image_type_to_mime_type(exif_imagetype($tempfile));
unlink($tempfile);