Restrict podcast hosting for some plans. Fixed error page colours.

This commit is contained in:
Albert Santoni 2015-11-17 17:34:13 -05:00
parent ef1a57459c
commit c5d9dfd93d
8 changed files with 134 additions and 3 deletions

View file

@ -84,6 +84,7 @@ class Rest_PodcastController extends Zend_Rest_Controller
$podcast = Application_Service_PodcastService::createFromFeedUrl($requestData["url"]);
$path = 'podcast/podcast.phtml';
$this->view->podcast = $podcast;
$this->_helper->json->sendJson(array(
"podcast"=>json_encode($podcast),
@ -176,10 +177,11 @@ class Rest_PodcastController extends Zend_Rest_Controller
}
break;
case HttpRequestType::GET:
$path = 'podcast/podcast.phtml';
foreach($ids as $id) {
$responseBody[] = array(
"podcast" => json_encode(Application_Service_PodcastService::getPodcastById($id)),
"html" => $this->view->render('podcast/podcast.phtml')
"html" => $this->view->render($path)
);
}
break;