* Wrap station podcast feed contents on radio page in displayRssTab check

* Test fix for automatic ingest bug
* Move disable layout code in feeds controller to avoid error case
This commit is contained in:
Duncan Sommerville 2015-10-28 10:58:22 -04:00
parent 09efacf4d5
commit cc9f1ea6d0
4 changed files with 12 additions and 5 deletions

View file

@ -4,14 +4,15 @@ class FeedsController extends Zend_Controller_Action
{
public function stationRssAction()
{
$this->view->layout()->disableLayout();
$this->_helper->viewRenderer->setNoRender(true);
if (Application_Model_Preference::getStationPodcastPrivacy()
&& $this->getRequest()->getParam("sharing_token") != Application_Model_Preference::getStationPodcastDownloadKey()) {
$this->getResponse()
->setHttpResponseCode(401);
return;
}
$this->view->layout()->disableLayout();
$this->_helper->viewRenderer->setNoRender(true);
header('Content-Type: text/xml');