mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-04 09:32:15 +09:00
Always download SVG as attachment
This commit is contained in:
parent
bf2df84d0f
commit
91744ec87c
1 changed files with 1 additions and 1 deletions
|
|
@ -551,7 +551,7 @@ class FileController extends File
|
||||||
{
|
{
|
||||||
$download_type = 'inline';
|
$download_type = 'inline';
|
||||||
}
|
}
|
||||||
if (Context::get('force_download') === 'Y')
|
if ($mime_type === 'image/svg+xml' || Context::get('force_download') === 'Y')
|
||||||
{
|
{
|
||||||
$download_type = 'attachment';
|
$download_type = 'attachment';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue