mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 11:44:10 +09:00
Add URL parameter force_download=Y to force download images
This commit is contained in:
parent
53599756a1
commit
7854d64641
1 changed files with 4 additions and 0 deletions
|
|
@ -501,6 +501,10 @@ class fileController extends file
|
|||
{
|
||||
$download_type = 'inline';
|
||||
}
|
||||
if (Context::get('force_download') === 'Y')
|
||||
{
|
||||
$download_type = 'attachment';
|
||||
}
|
||||
|
||||
// Clear buffer
|
||||
while(ob_get_level()) ob_end_clean();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue