mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-15 20:47:46 +02:00
fix(media): get path using media_path_absolute when saving media file
This commit is contained in:
parent
9346e787bd
commit
754e7a6b4b
1 changed files with 1 additions and 2 deletions
|
|
@ -24,8 +24,7 @@ class FS implements FileManagerInterface
|
||||||
{
|
{
|
||||||
helper('media');
|
helper('media');
|
||||||
|
|
||||||
$mediaRoot = $this->media_path_absolute();
|
$path = $this->media_path_absolute($key);
|
||||||
$path = $mediaRoot . '/' . $key;
|
|
||||||
|
|
||||||
if (! file_exists(dirname($path))) {
|
if (! file_exists(dirname($path))) {
|
||||||
mkdir(dirname($path), 0777, true);
|
mkdir(dirname($path), 0777, true);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue