[MEDIA][EXCEPTIONS] Fix errors and deprecations
This commit is contained in:
@@ -49,7 +49,7 @@ class Avatar extends Controller
|
||||
}
|
||||
|
||||
$res = $result[0];
|
||||
return Media::sendFile(EAvatar::getFilePath($res['file_hash']), $res['mimetype'], $res['title']);
|
||||
return Media::sendFile(EAvatar::getFilePathStatic($res['file_hash']), $res['mimetype'], $res['title']);
|
||||
default:
|
||||
throw new Exception('Not implemented');
|
||||
}
|
||||
|
||||
@@ -23,6 +23,7 @@ use App\Core\Log;
|
||||
use App\Core\Module;
|
||||
use App\Entity\File;
|
||||
use App\Util\Common;
|
||||
use App\Util\Exception\ClientException;
|
||||
use App\Util\Nickname;
|
||||
use Symfony\Component\HttpFoundation\BinaryFileResponse;
|
||||
use Symfony\Component\HttpFoundation\File\Exception\FileException;
|
||||
|
||||
Reference in New Issue
Block a user