Better way to get filename

This commit is contained in:
Pierre Rudloff 2016-04-10 19:43:33 +02:00
parent 442e2ec87c
commit 20ad5559be

View file

@ -130,9 +130,7 @@ class FrontController
'Content-Disposition: attachment; filename="'.
html_entity_decode(
pathinfo(
$this->download->getFilename(
$video->webpage_url
),
$video->_filename,
PATHINFO_FILENAME
).'.mp3',
ENT_COMPAT,
@ -152,9 +150,7 @@ class FrontController
'Content-Disposition: attachment; filename="'.
html_entity_decode(
pathinfo(
$this->download->getFilename(
$video->webpage_url
),
$video->_filename,
PATHINFO_FILENAME
).'.mp3',
ENT_COMPAT,