Restrict podcast hosting for some plans. Fixed error page colours.
This commit is contained in:
parent
ef1a57459c
commit
c5d9dfd93d
8 changed files with 134 additions and 3 deletions
|
@ -446,6 +446,12 @@ class LibraryController extends Zend_Controller_Action
|
|||
public function publishDialogAction() {
|
||||
$this->_helper->layout->disableLayout();
|
||||
|
||||
|
||||
if (!Billing::isStationPodcastAllowed()) {
|
||||
$this->renderScript("podcast/featureupgrade-pane.phtml");
|
||||
}
|
||||
|
||||
|
||||
//This just spits out publish-dialog.phtml!
|
||||
}
|
||||
}
|
||||
|
|
|
@ -26,6 +26,12 @@ class PodcastController extends Zend_Controller_Action {
|
|||
* Renders the Station podcast view
|
||||
*/
|
||||
public function stationAction() {
|
||||
|
||||
if (!Billing::isStationPodcastAllowed()) {
|
||||
$this->render("featureupgrade-page");
|
||||
return;
|
||||
}
|
||||
|
||||
$stationPodcastId = Application_Model_Preference::getStationPodcastId();
|
||||
$podcast = Application_Service_PodcastService::getPodcastById($stationPodcastId);
|
||||
$this->view->podcast = json_encode($podcast);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue