mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-04-26 19:20:11 +00:00
Support for cleared boot.php
This commit is contained in:
parent
95622a0f0d
commit
6a349e7fd9
15 changed files with 38 additions and 25 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue