Browse Source

Function calls

Rename function, update calls
pull/4245/head
Adam Magness 4 years ago
parent
commit
a80705a836
  1. 10
      mod/wall_attach.php
  2. 2
      src/Util/Mimetype.php

10
mod/wall_attach.php

@ -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();

2
src/Util/Mimetype.php

@ -12,7 +12,7 @@ class Mimetype
* @param string $filename filename
* @return mixed array or string
*/
public static function contentType($filename)
public static function getContentType($filename)
{
$mime_types = [

Loading…
Cancel
Save