1
1
Fork 0

Fix method scope in Model\Attach

This commit is contained in:
Hypolite Petovan 2019-01-21 16:05:25 -05:00
parent 0c19c4c75d
commit d5ce74672e

View file

@ -176,7 +176,7 @@ class Attach extends BaseObject
* @return boolean/integer Row id on success, False on errors
* @throws \Friendica\Network\HTTPException\InternalServerErrorException
*/
public function store($data, $uid, $filename, $filetype = '' , $filesize = null, $allow_cid = '', $allow_gid = '', $deny_cid = '', $deny_gid = '')
public static function store($data, $uid, $filename, $filetype = '' , $filesize = null, $allow_cid = '', $allow_gid = '', $deny_cid = '', $deny_gid = '')
{
if ($filetype === '') {
$filetype = Mimetype::getContentType($filename);