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

@ -99,7 +99,7 @@ class PreferenceController extends Zend_Controller_Action
// Append sharing token (download key) to Station podcast URL
$stationPodcast = PodcastQuery::create()->findOneByDbId(Application_Model_Preference::getStationPodcastId());
$key = Application_Model_Preference::getStationPodcastDownloadKey();
$url = Application_Common_HTTPHelper::getStationUrl() .
$url = Config::getPublicUrl() .
(((int) $values->stationPodcastPrivacy) ? "feeds/station-rss?sharing_token={$key}" : 'feeds/station-rss');
$stationPodcast->setDbUrl($url)->save();
Application_Model_Preference::setStationPodcastPrivacy($values->stationPodcastPrivacy);