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