mirror of
https://github.com/YGGverse/YGGtracker.git
synced 2025-01-22 12:44:25 +00:00
set app IDs in the filename postfix, remove lowercase
This commit is contained in:
parent
258d206f2e
commit
2e4129927d
@ -2416,14 +2416,10 @@ class TorrentController extends AbstractController
|
|||||||
$response->headers->set(
|
$response->headers->set(
|
||||||
'Content-Disposition',
|
'Content-Disposition',
|
||||||
sprintf(
|
sprintf(
|
||||||
'attachment; filename="%s#%s.%s.torrent";',
|
'attachment; filename="%s [%s#%s].torrent";',
|
||||||
mb_strtolower(
|
$file->getName(),
|
||||||
$this->getParameter('app.name')
|
$this->getParameter('app.name'),
|
||||||
),
|
$torrent->getId()
|
||||||
$torrent->getId(),
|
|
||||||
mb_strtolower(
|
|
||||||
$file->getName()
|
|
||||||
)
|
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user