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="'.
|
'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,
|
||||||
|
|
Loading…
Reference in a new issue