chore(legacy): use Config::getPublicUrl helper

Replace Application_Common_HTTPHelper::getStationUrl with Config::getPublicUrl.
This commit is contained in:
jo 2022-07-07 23:32:43 +02:00 committed by Kyle Robbertze
parent 72960593c7
commit 829b9bcd5b
17 changed files with 23 additions and 51 deletions

View file

@ -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();