]> git.mxchange.org Git - friendica.git/blobdiff - mod/wall_attach.php
Just some more fixed notice
[friendica.git] / mod / wall_attach.php
index 30bc9641f7893b89fcbf21a65d68ce1257f64de4..69763c2fe5f17a3b3155007c1838e863aee71a4a 100644 (file)
@@ -6,12 +6,12 @@
 use Friendica\App;
 use Friendica\Core\Config;
 use Friendica\Core\L10n;
+use Friendica\Core\System;
+use Friendica\Database\dba;
 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 +123,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,