mirror of https://github.com/friendica/friendica
Merge pull request #4245 from zeroadam/Mimetype-#3878
Move attach to src
This commit is contained in:
commit
3ab51bf5cb
1082
include/attach.php
1082
include/attach.php
File diff suppressed because it is too large
Load Diff
|
@ -1,11 +1,13 @@
|
||||||
<?php
|
<?php
|
||||||
|
/**
|
||||||
|
* @file mod/wall_attach.php
|
||||||
|
*/
|
||||||
use Friendica\App;
|
use Friendica\App;
|
||||||
use Friendica\Core\Config;
|
use Friendica\Core\Config;
|
||||||
use Friendica\Database\DBM;
|
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) {
|
function wall_attach_post(App $a) {
|
||||||
|
|
||||||
|
@ -117,7 +119,7 @@ function wall_attach_post(App $a) {
|
||||||
}
|
}
|
||||||
|
|
||||||
$filedata = @file_get_contents($src);
|
$filedata = @file_get_contents($src);
|
||||||
$mimetype = z_mime_content_type($filename);
|
$mimetype = Mimetype::getContentType($filename);
|
||||||
$hash = get_guid(64);
|
$hash = get_guid(64);
|
||||||
$created = datetime_convert();
|
$created = datetime_convert();
|
||||||
|
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue