mirror of
https://github.com/YGGverse/YGGtracker.git
synced 2026-04-01 09:35:28 +00:00
update torrent file name #11
This commit is contained in:
parent
69214e8058
commit
dec2383a04
1 changed files with 4 additions and 3 deletions
|
|
@ -997,9 +997,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.torrent";',
|
||||||
$this->getParameter('app.name'),
|
mb_strtolower(
|
||||||
$torrent->getId(),
|
$this->getParameter('app.name')
|
||||||
|
),
|
||||||
mb_strtolower(
|
mb_strtolower(
|
||||||
$file->getName()
|
$file->getName()
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue