Merge branch 'saas-dev-publishing' of github.com:sourcefabric/airtime into saas-dev-publishing

This commit is contained in:
Duncan Sommerville 2015-11-17 19:51:46 -05:00
commit ce7fdc2a85

View file

@ -368,6 +368,13 @@ class Application_Service_PodcastService
self::addEscapedChild($channel, "language", $podcast->getDbLanguage()); self::addEscapedChild($channel, "language", $podcast->getDbLanguage());
self::addEscapedChild($channel, "copyright", $podcast->getDbCopyright()); self::addEscapedChild($channel, "copyright", $podcast->getDbCopyright());
$xml->addAttribute('xmlns:xmlns:atom', "http://www.w3.org/2005/Atom");
$atomLink = $channel->addChild("xmlns:atom:link");
$atomLink->addAttribute("href", Application_Common_HTTPHelper::getStationUrl(false) . "feeds/station-rss");
$atomLink->addAttribute("rel", "self");
$atomLink->addAttribute("type", "application/rss+xml");
$imageUrl = Application_Common_HTTPHelper::getStationUrl(false)."api/station-logo"; $imageUrl = Application_Common_HTTPHelper::getStationUrl(false)."api/station-logo";
$image = $channel->addChild("image"); $image = $channel->addChild("image");
$image->addChild("title", $podcast->getDbTitle()); $image->addChild("title", $podcast->getDbTitle());