Better way to get filename
This commit is contained in:
parent
442e2ec87c
commit
20ad5559be
1 changed files with 2 additions and 6 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue