Merge pull request #11 from radiorabe/feature/disable-billing

Problem: Billing is always on
This commit is contained in:
Lucas Bickel 2017-03-04 16:10:50 +01:00 committed by GitHub
commit 7c86991c50
11 changed files with 176 additions and 164 deletions

View file

@ -443,7 +443,7 @@ class LibraryController extends Zend_Controller_Action
$this->_helper->layout->disableLayout();
if (!Billing::isStationPodcastAllowed()) {
if (LIBRETIME_ENABLE_BILLING === true && !Billing::isStationPodcastAllowed()) {
$this->renderScript("podcast/featureupgrade-pane.phtml");
}

View file

@ -27,7 +27,7 @@ class PodcastController extends Zend_Controller_Action {
*/
public function stationAction() {
if (!Billing::isStationPodcastAllowed()) {
if (LIBRETIME_ENABLE_BILLING === true && !Billing::isStationPodcastAllowed()) {
$this->render("featureupgrade-page");
return;
}