refactor all media create to centralise copy of medias and save, etc.

This commit is contained in:
osaajani 2021-03-26 23:32:29 +01:00
parent 92146ba8e1
commit 04a40049ce
18 changed files with 400 additions and 367 deletions

View file

@ -211,8 +211,8 @@ namespace controllers\internals;
foreach ($medias as $media)
{
$media_uris[] = [
'http_url' => HTTP_PWD_DATA . '/' . $media['path'],
'local_uri' => PWD_DATA . '/' . $media['path'],
'http_url' => HTTP_PWD_DATA_PUBLIC . '/' . $media['path'],
'local_uri' => PWD_DATA_PUBLIC . '/' . $media['path'],
];
}