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
|
@ -181,7 +181,7 @@ class Application_Service_PodcastEpisodeService extends Application_Service_Thir
|
|||
private function _download($id, $url, $title, $album_override, $track_title = null)
|
||||
{
|
||||
$CC_CONFIG = Config::getConfig();
|
||||
$stationUrl = Application_Common_HTTPHelper::getStationUrl();
|
||||
$stationUrl = Config::getPublicUrl();
|
||||
$data = [
|
||||
'id' => $id,
|
||||
'url' => $url,
|
||||
|
@ -249,7 +249,7 @@ class Application_Service_PodcastEpisodeService extends Application_Service_Thir
|
|||
public function publish($fileId)
|
||||
{
|
||||
$id = Application_Model_Preference::getStationPodcastId();
|
||||
$url = $guid = Application_Common_HTTPHelper::getStationUrl() . "rest/media/{$fileId}/download";
|
||||
$url = $guid = Config::getPublicUrl() . "rest/media/{$fileId}/download";
|
||||
if (!PodcastEpisodesQuery::create()
|
||||
->filterByDbPodcastId($id)
|
||||
->findOneByDbFileId($fileId)) { // Don't allow duplicate episodes
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue