Move attach to src
This commit is contained in:
Hypolite Petovan 2018-01-15 09:17:15 -05:00 committed by GitHub
commit 3ab51bf5cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 1090 additions and 1086 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1,11 +1,13 @@
<?php
/**
* @file mod/wall_attach.php
*/
use Friendica\App;
use Friendica\Core\Config;
use Friendica\Database\DBM;
use Friendica\Util\Mimetype;
require_once('include/attach.php');
require_once('include/datetime.php');
require_once 'include/datetime.php';
function wall_attach_post(App $a) {
@ -117,7 +119,7 @@ function wall_attach_post(App $a) {
}
$filedata = @file_get_contents($src);
$mimetype = z_mime_content_type($filename);
$mimetype = Mimetype::getContentType($filename);
$hash = get_guid(64);
$created = datetime_convert();

1084
src/Util/Mimetype.php Normal file

File diff suppressed because it is too large Load Diff