chore(legacy): use Config::getPublicUrl helper
Replace Application_Common_HTTPHelper::getStationUrl with Config::getPublicUrl.
This commit is contained in:
parent
72960593c7
commit
829b9bcd5b
17 changed files with 23 additions and 51 deletions
|
@ -1050,7 +1050,7 @@ SQL;
|
|||
$file = $storedFile->getPropelOrm();
|
||||
// Even local files are downloaded through the REST API in case we need to transform
|
||||
// their filenames (eg. in the case of a bad file extension, because Liquidsoap won't play them)
|
||||
$uri = Application_Common_HTTPHelper::getStationUrl() . 'rest/media/' . $media_id;
|
||||
$uri = Config::getPublicUrl() . 'rest/media/' . $media_id;
|
||||
// $uri = $file->getAbsoluteFilePath();
|
||||
|
||||
$filesize = $file->getFileSize();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue