X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fwall_attach.php;h=29c790843a7dd8ef4513b08c7fe835735a1ea6eb;hb=796056a6feaf305dd9fb7c97bb43cdbc75ad0641;hp=30bc9641f7893b89fcbf21a65d68ce1257f64de4;hpb=e5a5a7dc7bd8888897e8959a89cc21922580e5e4;p=friendica.git diff --git a/mod/wall_attach.php b/mod/wall_attach.php index 30bc9641f7..29c790843a 100644 --- a/mod/wall_attach.php +++ b/mod/wall_attach.php @@ -6,12 +6,11 @@ use Friendica\App; use Friendica\Core\Config; use Friendica\Core\L10n; +use Friendica\Core\System; use Friendica\Database\DBM; use Friendica\Util\DateTimeFormat; use Friendica\Util\Mimetype; -require_once 'include/datetime.php'; - function wall_attach_post(App $a) { $r_json = (x($_GET,'response') && $_GET['response']=='json'); @@ -123,7 +122,7 @@ function wall_attach_post(App $a) { $filedata = @file_get_contents($src); $mimetype = Mimetype::getContentType($filename); - $hash = get_guid(64); + $hash = System::createGUID(64); $created = DateTimeFormat::utcNow(); $fields = ['uid' => $page_owner_uid, 'hash' => $hash, 'filename' => $filename, 'filetype' => $mimetype,